@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 AbstractNumberVectorDistanceFunction
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.
|
private double |
pEpsilon
Keeps the currently set pEpsilon.
|
Constructor and Description |
---|
LCSSDistanceFunction(double pDelta,
double pEpsilon)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(NumberVector v1,
NumberVector v2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
boolean |
equals(Object obj) |
VectorTypeInformation<? super NumberVector> |
getInputTypeRestriction()
Get the input data type of the function.
|
double |
getRange(NumberVector v1,
int dim1,
NumberVector v2,
int dim2) |
dimensionality, dimensionality, dimensionality, dimensionality
instantiate, isMetric, isSymmetric
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
instantiate, isMetric, isSymmetric
private double pDelta
private double pEpsilon
public LCSSDistanceFunction(double pDelta, double pEpsilon)
pDelta
- pDeltapEpsilon
- pEpsilonpublic double distance(NumberVector v1, NumberVector v2)
PrimitiveDistanceFunction
distance
in interface NumberVectorDistanceFunction<NumberVector>
distance
in interface PrimitiveDistanceFunction<NumberVector>
distance
in class AbstractPrimitiveDistanceFunction<NumberVector>
v1
- first DatabaseObjectv2
- second DatabaseObjectpublic double getRange(NumberVector v1, int dim1, NumberVector v2, int dim2)
public VectorTypeInformation<? super NumberVector> getInputTypeRestriction()
DistanceFunction
getInputTypeRestriction
in interface DistanceFunction<NumberVector>
getInputTypeRestriction
in interface PrimitiveDistanceFunction<NumberVector>
getInputTypeRestriction
in class AbstractNumberVectorDistanceFunction
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.