com.rapidminer.tools.math.similarity
Class DistanceMeasureHelper
java.lang.Object
com.rapidminer.tools.math.similarity.DistanceMeasureHelper
public class DistanceMeasureHelper
- extends java.lang.Object
This helper class installs and uninstalls additional ports at operators
that operate on distance measures. It registers itself as an observer
of the operator's parameters and instantiates a new DistanceMeasure
whenever one of the parameters DistanceMeasures.PARAMETER_MEASURE_TYPES,
DistanceMeasures.PARAMETER_MIXED_MEASURE,
DistanceMeasures.PARAMETER_NUMERICAL_MEASURE,
DistanceMeasures.PARAMETER_NOMINAL_MEASURE, or
DistanceMeasures.PARAMETER_DIVERGENCE changes.
If the chosen DistanceMeasure overrides
DistanceMeasure.installAdditionalPorts(com.rapidminer.operator.ports.InputPorts, com.rapidminer.parameter.ParameterHandler)
this may install new ports at the operator.
In its Operator.doWork() method, the operator may call
getInitializedMeasure(ExampleSet) in order to initialize the distance measure
and obtain it. Call this method only once.
- Author:
- Simon Fischer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistanceMeasureHelper
public DistanceMeasureHelper(Operator operator)
getInitializedMeasure
public DistanceMeasure getInitializedMeasure(ExampleSet exampleSet)
throws OperatorException
- Throws:
OperatorException
getSelectedMeasureType
public int getSelectedMeasureType()
throws UndefinedParameterError
- Throws:
UndefinedParameterError
Copyright © 2001-2009 by Rapid-I