public abstract class DistanceMetricDissimilarity extends AbstractClusterDissimilarity
distance metric
.Modifier and Type | Field and Description |
---|---|
protected DistanceMetric |
dm
The distance metric that will back this dissimilarity measure.
|
Constructor and Description |
---|
DistanceMetricDissimilarity(DistanceMetric dm) |
Modifier and Type | Method and Description |
---|---|
abstract DistanceMetricDissimilarity |
clone() |
double |
distance(DataPoint a,
DataPoint b)
Provides the notion of distance, or dissimilarity, between two data points
|
createDistanceMatrix, getDistance, setDistance
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dissimilarity, dissimilarity
protected final DistanceMetric dm
public DistanceMetricDissimilarity(DistanceMetric dm)
public double distance(DataPoint a, DataPoint b)
ClusterDissimilarity
a
- the first data pointb
- the second data pointpublic abstract DistanceMetricDissimilarity clone()
clone
in interface ClusterDissimilarity
clone
in class AbstractClusterDissimilarity
Copyright © 2017. All rights reserved.