
@Title(value="Longest Common Subsequence distance function") @Reference(authors="M. Vlachos, M. Hadjieleftheriou, D. Gunopulos, E. Keogh", title="Indexing Multi-Dimensional Time-Series with Support for Multiple Distance Measures", booktitle="Proceedings of the ninth ACM SIGKDD international conference on Knowledge discovery and data mining", url="http://dx.doi.org/10.1145/956750.956777") public class LCSSDistanceFunction extends AbstractVectorDoubleDistanceFunction
M. Vlachos, M. Hadjieleftheriou, D. Gunopulos, E. Keogh:
Indexing Multi-Dimensional Time-Series with Support for Multiple Distance
Measures
In Proc. of 9th SIGKDD, Washington, DC, 2003
| Modifier and Type | Class and Description |
|---|---|
static class |
LCSSDistanceFunction.Parameterizer
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
private double |
pDelta
Keeps the currently set pDelta.
|
static OptionID |
PDELTA_ID
PDELTA parameter
|
private double |
pEpsilon
Keeps the currently set pEpsilon.
|
static OptionID |
PEPSILON_ID
PEPSILON parameter
|
| Constructor and Description |
|---|
LCSSDistanceFunction(double pDelta,
double pEpsilon)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
doubleDistance(NumberVector<?,?> v1,
NumberVector<?,?> v2)
Provides the Longest Common Subsequence distance between the given two
vectors.
|
boolean |
equals(Object obj) |
VectorFieldTypeInformation<? super NumberVector<?,?>> |
getInputTypeRestriction()
Get the input data type of the function.
|
distance, getDistanceFactoryinstantiate, isMetric, isSymmetricclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinstantiate, isMetric, isSymmetricpublic static final OptionID PDELTA_ID
public static final OptionID PEPSILON_ID
private double pDelta
private double pEpsilon
public LCSSDistanceFunction(double pDelta,
double pEpsilon)
pDelta - pDeltapEpsilon - pEpsilonpublic double doubleDistance(NumberVector<?,?> v1, NumberVector<?,?> v2)
v1 - first Objectv2 - second ObjectDoubleDistance.public VectorFieldTypeInformation<? super NumberVector<?,?>> getInputTypeRestriction()
DistanceFunctiongetInputTypeRestriction in interface DistanceFunction<NumberVector<?,?>,DoubleDistance>getInputTypeRestriction in interface PrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>getInputTypeRestriction in class AbstractVectorDoubleDistanceFunction