assignCluster_() - JaneliaSciComp/JRCLUST GitHub Wiki
Assigns cluster membership by copying the cluster index of the nearest neighbors (nneigh)
Syntax
[viClu, icl] = assignCluster_(viClu, ordrho, nneigh, icl)
Input
viClu: cluster numbers that are previously assigned (default: [])ordrho: order ofrho(descending order)nneigh: nearest neighbor event indicesicl: event indices that are cluster peaks
Output
viClu: cluster numbersicl: changed only when icl==[], set to the highestrhoevent