CellScope.cs.findCenters
CellScope.cs. findCenters (rho : np.ndarray, delta : np.ndarray)
findCenters adaptively identifies multiple cluster centers based on the product of local density (rho) and the distance to the nearest higher-density cell (delta).
Parameters
- rho (
ndarray): A vector of length n_cell, representing the local density for each cell.
- rho (
- delta (
ndarray): A vector of Euclidean distances between each cell and the nearest higher-density cell.
- delta (
Return
- centers (
ndarray): A vector containing the indices of the selected cluster centers, with the length equal to the number of centers.
- centers (
- deltarho (
ndarray|csr_matrix): A vector of length n_cell, representing the product of the normalized rho (local density) and delta (distance to higher-density cells).
- deltarho (