|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.math.similarity.DistanceMeasure
public abstract class DistanceMeasure
This interfaces defines the methods for all similarity measures. Classes implementing this interface are not allowed to have a constructer, instead should use the init method.
| Constructor Summary | |
|---|---|
DistanceMeasure()
|
|
| Method Summary | |
|---|---|
abstract double |
calculateDistance(double[] value1,
double[] value2)
This method does the calculation of the distance between two double arrays. |
double |
calculateDistance(Example firstExample,
double[] second)
This is a convinient method for calculating the distance between examples and double arrays. |
double |
calculateDistance(Example firstExample,
Example secondExample)
This is a convinient method for calculating the distance between examples. |
abstract double |
calculateSimilarity(double[] value1,
double[] value2)
This method does the similarity of the distance between two double arrays. |
double |
calculateSimilarity(Example firstExample,
double[] second)
This is a convinient method for calculating the similarity between examples and a double array. |
double |
calculateSimilarity(Example firstExample,
Example secondExample)
This is a convinient method for calculating the similarity between examples. |
abstract void |
init(ExampleSet exampleSet)
Before using a similarity measure, it is needed to initialise. |
void |
init(ExampleSet exampleSet,
ParameterHandler parameterHandler)
Before using a similarity measure, it is needed to initialise. |
void |
init(ExampleSet exampleSet,
ParameterHandler parameterHandler,
IOContainer ioContainer)
Before using a similarity measure, it is needed to initialize. |
boolean |
isDistance()
This method returns a boolean wheter this measure is a distance measure |
boolean |
isSimilarity()
This method returns a boolean wheter this measure is a similarity measure |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DistanceMeasure()
| Method Detail |
|---|
public abstract void init(ExampleSet exampleSet)
throws OperatorException
exampleSet - the exampleset
OperatorException
public void init(ExampleSet exampleSet,
ParameterHandler parameterHandler)
throws OperatorException
exampleSet - the examplesetparameterHandler - the handler to ask for parameter values
OperatorException
public void init(ExampleSet exampleSet,
ParameterHandler parameterHandler,
IOContainer ioContainer)
throws OperatorException
exampleSet - the examplesetparameterHandler - the handler to ask for parameter valuesioContainer - the container holding the additional IO objects
OperatorException
public abstract double calculateDistance(double[] value1,
double[] value2)
value1 - value2 -
public abstract double calculateSimilarity(double[] value1,
double[] value2)
value1 - value2 -
public boolean isDistance()
public final boolean isSimilarity()
public double calculateDistance(Example firstExample,
Example secondExample)
public final double calculateDistance(Example firstExample,
double[] second)
public double calculateSimilarity(Example firstExample,
Example secondExample)
public final double calculateSimilarity(Example firstExample,
double[] second)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||