


sorts a block of spikes ------------------------- inputs: allSpikes: block of spikes, 256 datapoints each allTimestamps: timestamp for each spike. arbitrary units. returns: NrOfclustersFound assignedCluster: for each spike, which cluster # (clusters are arbitrarly numbered) meanSpikeForm: mean spike for every cluster rankedClusters: sorts (ascending) clusters according to nr of spikes associated. first column=cluster nr, second column=nr of spikes associated. %urut/april04
