Generalize DistanceMeasure class

Hi!

Do you think that it could useful to generalize the API of DistanceMeasure interface by using an interface instead of a double[] array in the compute() method ?

The idea is to have implementations that can contain more than a double[] array of values. For instance, the uncertainties related to the values :slight_smile:

Another possibility is to use Clusterable instead of double[] since the DistanceMeasure interface is in the clustering package. But I also think that DistanceMeasure could move to another module, like core, since it is generic. As a result, Clusterable could not be used and a new interface should be created. (Clusterable could extend this new interface)

Thank you

Bryan

1 Like

Hi @bcazabonne,

I think it can be useful indeed.

This solution looks preferable yes.

Max