public interface DistanceMetric extends java.lang.Comparable<DistanceMetric>
Modifier and Type | Interface and Description |
---|---|
static class |
DistanceMetric.SparcseMetricModes |
Modifier and Type | Method and Description |
---|---|
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(java.lang.String metricParamString)
Sets additional parameters needed for the metric.
|
double |
transformValue(double value) |
double[] |
transformVector(double[] vector) |
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(java.lang.String metricParamString) throws SOMToolboxException
SOMToolboxException