Differences

This shows you the differences between two versions of the page.

Link to this comparison view

reference:ft_spikesorting [2018/08/23 14:43] (current)
Line 1: Line 1:
 +=====  FT_SPIKESORTING =====
 +
 +Note that this reference documentation is identical to the help that is displayed in MATLAB when you type "help ft_spikesorting"​.
 +
 +<​html><​pre>​
 +  <a href=/​reference/​ft_spikesorting><​font color=green>​FT_SPIKESORTING</​font></​a>​ performs clustering of spike-waveforms and returns the
 +  unit number to which each spike belongs.
 + 
 +  Use as
 +    [spike] = ft_spikesorting(cfg,​ spike)
 + 
 +  The configuration can contain
 +    cfg.channel ​        ​cell-array with channel selection (default = '​all'​),​ see <a href=/​reference/​ft_channelselection><​font color=green>​FT_CHANNELSELECTION</​font></​a>​ for details
 +    cfg.method ​         '​kmeans',​ '​ward'​
 +    cfg.feedback ​       '​no',​ '​text',​ '​textbar',​ '​gui'​ (default = '​textbar'​)
 +    cfg.kmeans ​         substructure with additional low-level options for this method
 +    cfg.ward ​           substructure with additional low-level options for this method
 +    cfg.ward.distance ​  '​L1',​ '​L2',​ '​correlation',​ '​cosine'​
 + 
 +  The input spike structure can be imported using READ_FCDC_SPIKE and should contain
 +    spike.label ​    = 1 x Nchans cell-array, with channel labels
 +    spike.waveform ​ = 1 x Nchans cell-array, each element contains a matrix (Nsamples x Nspikes), can be empty
 +    spike.timestamp = 1 x Nchans cell-array, each element contains a vector (1 x Nspikes)
 +    spike.unit ​     = 1 x Nchans cell-array, each element contains a vector (1 x Nspikes)
 + 
 +  See also <a href=/​reference/​ft_read_spike><​font color=green>​FT_READ_SPIKE</​font></​a>,​ <a href=/​reference/​ft_spikedownsample><​font color=green>​FT_SPIKEDOWNSAMPLE</​font></​a>​
 +</​pre></​html>​