
public class PCACorrelationDistance extends CorrelationDistance<PCACorrelationDistance>
| Modifier and Type | Field and Description |
|---|---|
static PCACorrelationDistance |
FACTORY
The static factory instance
|
private static long |
serialVersionUID
Serial
|
CORRELATION_DISTANCE_PATTERN, correlationValue, euclideanValue, SEPARATORDOUBLE_PATTERN, INFINITY_PATTERN, INTEGER_PATTERN| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
compareTo, equals, externalizableSize, getCorrelationValue, getEuclideanValue, hashCode, readExternal, toString, writeExternalrequiredInputPattern, testInputPatternpublic static final PCACorrelationDistance FACTORY
private static final long serialVersionUID
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
CorrelationDistancepublic PCACorrelationDistance parseString(String val) throws IllegalArgumentException
val - A pattern defining a distance suitable to this
DistanceFunctionIllegalArgumentException - if the given pattern is not compatible
with the requirements of this DistanceFunctionpublic Pattern getPattern()
AbstractDistancegetPattern in class AbstractDistance<PCACorrelationDistance>public PCACorrelationDistance infiniteDistance()
public PCACorrelationDistance nullDistance()
public PCACorrelationDistance undefinedDistance()
public PCACorrelationDistance plus(PCACorrelationDistance distance)
Distancedistance - the distance to be added to this distancepublic PCACorrelationDistance minus(PCACorrelationDistance distance)
Distancedistance - the distance to be subtracted from this distancepublic boolean isInfiniteDistance()
DistanceisInfiniteDistance in interface Distance<PCACorrelationDistance>isInfiniteDistance in class AbstractDistance<PCACorrelationDistance>public boolean isNullDistance()
DistanceisNullDistance in interface Distance<PCACorrelationDistance>isNullDistance in class AbstractDistance<PCACorrelationDistance>public boolean isUndefinedDistance()
DistanceisUndefinedDistance in interface Distance<PCACorrelationDistance>isUndefinedDistance in class AbstractDistance<PCACorrelationDistance>