How do I define the distance measure to be used for clustering methods?
So I'm currently working on different clustering methods to analyse music data.
So how do I set the measure?
I'm using RapidMiner as a library and want to use e.g. the k-Means method. I've already initialized everything but I'm still struggling to define the Distance Measure to be used. I'd like to be able to choose between all of those RapidMiner offers for numerical values, but can't find how I'd have to set it and if it would be possible to get a list of those measures the clustering method supports.
I set the operator and its parameters in my class like this:
Operator clusterer = OperatorService.createOperator(FastKMeans.class);
clusterer.setParameter("k", new Integer(k).toString());
...
But the Distance Measure isn't set via a parameter but based on the given example set (in e.g. FastKMeans.class):
DistanceMeasure measure = this.getInitializedMeasure(eSet);
vs.
int k = this.getParameterAsInt("k");
So how do I set the measure?