Home > data-analysis > manip > cevent > cevent_longest_per_type.m

cevent_longest_per_type

PURPOSE ^

filters the cevent so only the longest instance per type is left

SYNOPSIS ^

function cev_res = cevent_longest_per_type(cevent)

DESCRIPTION ^

 filters the cevent so only the longest instance per type is left

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function cev_res = cevent_longest_per_type(cevent)
0002 % filters the cevent so only the longest instance per type is left
0003 %
0004 [events types] = cevent2events(cevent);
0005 
0006 longests = cellfun(@event_longest, events, 'UniformOutput', 0);
0007 
0008 cev_res = [vertcat(longests{:}) types];

Generated on Tue 23-May-2017 20:00:55 by m2html © 2005