@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="Proc. 9th ACM SIGKDD Int. Conf. on Knowledge Discovery and Data Mining", url="https://doi.org/10.1145/956750.956777", bibkey="DBLP:conf/kdd/VlachosHGK03") public class LCSSDistanceFunction extends AbstractNumberVectorDistanceFunction
Originally this was based on the Matlab Code by Michalis Vlachos, but we have since switched to a version that uses less memory.
Reference:
M. Vlachos, M. Hadjieleftheriou, D. Gunopulos, E. Keogh
Indexing Multi-Dimensional Time-Series with Support for Multiple Distance
Measures
Proc. 9th ACM SIGKDD Int. Conf. on Knowledge Discovery and Data Mining
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 vectors according to this distance
function.
|
boolean |
equals(java.lang.Object obj) |
VectorTypeInformation<? super NumberVector> |
getInputTypeRestriction()
Get the input data type of the function.
|
double |
getRange(NumberVector v1,
int dim1,
NumberVector v2,
int dim2) |
int |
hashCode() |
dimensionality, dimensionality, dimensionality, dimensionality, dimensionality, dimensionality, dimensionality, dimensionality
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
instantiate
isMetric, isSquared, isSymmetric
private double pDelta
private double pEpsilon
public LCSSDistanceFunction(double pDelta, double pEpsilon)
pDelta
- pDeltapEpsilon
- pEpsilonpublic double distance(NumberVector v1, NumberVector v2)
NumberVectorDistanceFunction
v1
- first vectorv2
- second vectorpublic 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
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.