run¶
Import in python using from mcot.core._scripts.parcel.random import run
-
mcot.core._scripts.parcel.random.run(surface: mcot.core.surface.cortical_mesh.CorticalMesh, ncluster: int, max_iter=0)[source]¶ Creates a random parcellation of the surface based on the distance between surface elements
Parameters: - surface – cortical surface with N vertices
- ncluster – number of clusters
- max_iter – maximum number of iterations in the k-medoids (if 0 a fast voronoi evaluation is used)
Returns: (N, ) integer array with values from 0 to N-1