|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.distance.distancevalue.AbstractDistance<D> de.lmu.ifi.dbs.elki.distance.distancevalue.CorrelationDistance<PCACorrelationDistance> de.lmu.ifi.dbs.elki.distance.distancevalue.PCACorrelationDistance
public class PCACorrelationDistance
The correlation distance is a special Distance that indicates the dissimilarity between correlation connected objects. The correlation distance between two points is a pair consisting of the correlation dimension of two points and the euclidean distance between the two points.
Field Summary | |
---|---|
static PCACorrelationDistance |
FACTORY
The static factory instance |
private static long |
serialVersionUID
Serial |
Fields inherited from class de.lmu.ifi.dbs.elki.distance.distancevalue.CorrelationDistance |
---|
CORRELATION_DISTANCE_PATTERN, correlationValue, euclideanValue, SEPARATOR |
Fields inherited from class de.lmu.ifi.dbs.elki.distance.distancevalue.AbstractDistance |
---|
DOUBLE_PATTERN, INFINITY_PATTERN, INTEGER_PATTERN |
Constructor Summary | |
---|---|
PCACorrelationDistance()
Empty constructor for serialization purposes. |
|
PCACorrelationDistance(int correlationValue,
double euclideanValue)
Constructs a new CorrelationDistance object consisting of the specified correlation value and euclidean value. |
Method Summary | |
---|---|
Pattern |
getPattern()
Get the pattern accepted by this distance |
PCACorrelationDistance |
infiniteDistance()
Provides an infinite distance. |
boolean |
isInfiniteDistance()
Returns true, if the distance is an infinite distance, false otherwise. |
boolean |
isNullDistance()
Returns true, if the distance is a null distance, false otherwise. |
boolean |
isUndefinedDistance()
Returns true, if the distance is an undefined distance, false otherwise. |
PCACorrelationDistance |
minus(PCACorrelationDistance distance)
Returns a new Distance by subtracting the given distance from this distance. |
PCACorrelationDistance |
nullDistance()
Provides a null distance. |
PCACorrelationDistance |
parseString(String val)
Provides a distance suitable to this DistanceFunction based on the given pattern. |
PCACorrelationDistance |
plus(PCACorrelationDistance distance)
Returns a new distance as sum of this distance and the given distance. |
PCACorrelationDistance |
undefinedDistance()
Provides an undefined distance. |
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancevalue.CorrelationDistance |
---|
compareTo, equals, externalizableSize, getCorrelationValue, getEuclideanValue, hashCode, readExternal, toString, writeExternal |
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancevalue.AbstractDistance |
---|
requiredInputPattern, testInputPattern |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PCACorrelationDistance FACTORY
private static final long serialVersionUID
Constructor Detail |
---|
public PCACorrelationDistance()
public PCACorrelationDistance(int correlationValue, double euclideanValue)
correlationValue
- the correlation dimension to be represented by the
CorrelationDistanceeuclideanValue
- the euclidean distance to be represented by the
CorrelationDistanceMethod Detail |
---|
public PCACorrelationDistance parseString(String val) throws IllegalArgumentException
val
- A pattern defining a distance suitable to this
DistanceFunction
IllegalArgumentException
- if the given pattern is not compatible
with the requirements of this DistanceFunctionpublic Pattern getPattern()
AbstractDistance
getPattern
in class AbstractDistance<PCACorrelationDistance>
public PCACorrelationDistance infiniteDistance()
public PCACorrelationDistance nullDistance()
public PCACorrelationDistance undefinedDistance()
public PCACorrelationDistance plus(PCACorrelationDistance distance)
Distance
distance
- the distance to be added to this distance
public PCACorrelationDistance minus(PCACorrelationDistance distance)
Distance
distance
- the distance to be subtracted from this distance
public boolean isInfiniteDistance()
Distance
isInfiniteDistance
in interface Distance<PCACorrelationDistance>
isInfiniteDistance
in class AbstractDistance<PCACorrelationDistance>
public boolean isNullDistance()
Distance
isNullDistance
in interface Distance<PCACorrelationDistance>
isNullDistance
in class AbstractDistance<PCACorrelationDistance>
public boolean isUndefinedDistance()
Distance
isUndefinedDistance
in interface Distance<PCACorrelationDistance>
isUndefinedDistance
in class AbstractDistance<PCACorrelationDistance>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |