|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DistanceMetric
The interface, distance metric classes have to implement.
| Nested Class Summary | |
|---|---|
static class |
DistanceMetric.SparcseMetricModes
|
| Method Summary | |
|---|---|
double |
distance(double[] vector1,
double[] vector2)
Calculates the distance between two vectors provided by argument vector1 and vector2. |
double |
distance(double[] vector1,
cern.colt.matrix.DoubleMatrix1D vector2)
Calculates the distance between two vectors provided by argument vector1 and vector2. |
double |
distance(double[] vector,
InputDatum datum)
Calculates the distance between two vectors provided by argument vector and datum. |
double |
distance(cern.colt.matrix.DoubleMatrix1D vector1,
double[] vector2)
Calculates the distance between two vectors provided by argument vector1 and vector2. |
double |
distance(cern.colt.matrix.DoubleMatrix1D vector1,
cern.colt.matrix.DoubleMatrix1D vector2)
Calculates the distance between two vectors provided by argument vector1 and vector2. |
double |
distance(cern.colt.matrix.DoubleMatrix1D vector,
InputDatum datum)
Calculates the distance between two vectors provided by argument vector and datum. |
double |
distance(InputDatum datum,
double[] vector)
Calculates the distance between two vectors provided by argument datum and vector. |
double |
distance(InputDatum datum,
cern.colt.matrix.DoubleMatrix1D vector)
Calculates the distance between two vectors provided by argument datum and vector. |
double |
distance(InputDatum datum,
InputDatum datum2)
Calculates the distance between two vectors provided by argument datum and datum2. |
void |
setMetricParams(String metricParamString)
Sets additional parameters needed for the metric. |
double |
transformValue(double value)
|
double[] |
transformVector(double[] vector)
|
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
double distance(double[] vector1,
double[] vector2)
throws MetricException
vector1 and vector2. A
MetricException is thrown, if the dimensionalities of the two vectors differ.
vector1 - first vector.vector2 - second vector.
vector1 and vector2.
MetricException - if the dimensionalities of the two vectors differ.
double distance(double[] vector1,
cern.colt.matrix.DoubleMatrix1D vector2)
throws MetricException
vector1 and vector2. A
MetricException is thrown, if the dimensionalities of the two vectors differ.
vector1 - first vector.vector2 - second vector.
vector1 and vector2.
MetricException - if the dimensionalities of the two vectors differ.
double distance(double[] vector,
InputDatum datum)
throws MetricException
vector and datum. A
MetricException is thrown, if the dimensionalities of the two vectors differ.
vector - first vector.datum - input datum.
vector and datum.
MetricException - if the dimensionalities of the two vectors differ.
double distance(cern.colt.matrix.DoubleMatrix1D vector1,
double[] vector2)
throws MetricException
vector1 and vector2. A
MetricException is thrown, if the dimensionalities of the two vectors differ.
vector1 - first vector.vector2 - second vector.
vector1 and vector2.
MetricException - if the dimensionalities of the two vectors differ.
double distance(cern.colt.matrix.DoubleMatrix1D vector1,
cern.colt.matrix.DoubleMatrix1D vector2)
throws MetricException
vector1 and vector2. A
MetricException is thrown, if the dimensionalities of the two vectors differ.
vector1 - first vector.vector2 - second vector.
vector1 and vector2.
MetricException - if the dimensionalities of the two vectors differ.
double distance(cern.colt.matrix.DoubleMatrix1D vector,
InputDatum datum)
throws MetricException
vector and datum. A
MetricException is thrown, if the dimensionalities of the two vectors differ.
vector - first vector.datum - input datum.
vector and datum.
MetricException - if the dimensionalities of the two vectors differ.
double distance(InputDatum datum,
double[] vector)
throws MetricException
datum and vector. A
MetricException is thrown, if the dimensionalities of the two vectors differ.
datum - input datum.vector - first vector.
datum and vector.
MetricException - if the dimensionalities of the two vectors differ.
double distance(InputDatum datum,
cern.colt.matrix.DoubleMatrix1D vector)
throws MetricException
datum and vector. A
MetricException is thrown, if the dimensionalities of the two vectors differ.
datum - input datum.vector - first vector.
datum and vector.
MetricException - if the dimensionalities of the two vectors differ.
double distance(InputDatum datum,
InputDatum datum2)
throws MetricException
datum and datum2. A
MetricException is thrown, if the dimensionalities of the two vectors differ.
datum - first input datum.datum2 - second input datum.
datum and vector.
MetricException - if the dimensionalities of the two vectors differ.double transformValue(double value)
double[] transformVector(double[] vector)
void setMetricParams(String metricParamString)
throws SOMToolboxException
SOMToolboxException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||