When populating workspaces it would be convenient to have a public method in the workspace that takes a double as an argument and provides the cluster ID of the cluster closest to the given value.
I have added two functions, one that returns the ID and the other that returns the index of the cluster, that has centre of mass closest to the supplied mass.
When populating workspaces it would be convenient to have a public method in the workspace that takes a double as an argument and provides the cluster ID of the cluster closest to the given value.