uniform_centroids

Import in python using from mcot.core._scripts.parcel.random import uniform_centroids

mcot.core._scripts.parcel.random.uniform_centroids(dist_map, n_centroids)[source]

Uniformly space n_centroids seeds in a naive way

Parameters:
  • dist_map – sparse distance map
  • n_centroids – number of seeds to place
Returns:

(n_centroids, ) integer arrays with the indices of the seeds