nano-bio / IsotopeFitSharp

0 stars 0 forks source link

Provide ConvenienceFunction to search for Cluster ID by CentreOfMass #7

Open johannespostler opened 6 years ago

johannespostler commented 6 years ago

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.

enaixtu commented 6 years ago

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.