ObjectParameter<FilteredLocalPCABasedDistanceFunction<V, ?, D>> pdistP = new ObjectParameter<FilteredLocalPCABasedDistanceFunction<V, ?, D>>(PARTITION_DISTANCE_ID, FilteredLocalPCABasedDistanceFunction.class, LocallyWeightedDistanceFunction.class);
if(config.grab(pdistP)) {
ListParameterization predefinedDist = new ListParameterization();
predefinedDist.addParameter(IndexBasedDistanceFunction.INDEX_ID, indexI);
ChainedParameterization chainDist = new ChainedParameterization(predefinedDist, config);
chainDist.errorsTo(config);
pdistI = pdistP.instantiateClass(chainDist);
predefinedDist.reportInternalParameterizationErrors(config);
}
// Parameterize algorithm: