Package elki.distance.timeseries
Class AbstractEditDistance
- java.lang.Object
-
- elki.distance.AbstractNumberVectorDistance
-
- elki.distance.timeseries.AbstractEditDistance
-
- All Implemented Interfaces:
Distance<NumberVector>
,NumberVectorDistance<NumberVector>
,PrimitiveDistance<NumberVector>
- Direct Known Subclasses:
DTWDistance
public abstract class AbstractEditDistance extends AbstractNumberVectorDistance
Edit Distance for FeatureVectors.- Since:
- 0.2
- Author:
- Thomas Bernecker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractEditDistance.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description protected double
bandSize
Keeps the currently set bandSize.
-
Constructor Summary
Constructors Constructor Description AbstractEditDistance(double bandSize)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
effectiveBandSize(int dim1, int dim2)
Compute the effective band size.boolean
equals(java.lang.Object obj)
VectorTypeInformation<? super NumberVector>
getInputTypeRestriction()
Get the input data type of the function.int
hashCode()
-
Methods inherited from class elki.distance.AbstractNumberVectorDistance
dimensionality, dimensionality, dimensionality, dimensionality, dimensionality, dimensionality, dimensionality, dimensionality
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.distance.Distance
isMetric, isSquared, isSymmetric
-
Methods inherited from interface elki.distance.NumberVectorDistance
distance
-
Methods inherited from interface elki.distance.PrimitiveDistance
distance, instantiate
-
-
-
-
Method Detail
-
effectiveBandSize
protected int effectiveBandSize(int dim1, int dim2)
Compute the effective band size.- Parameters:
dim1
- First dimensionalitydim2
- Second dimensionality- Returns:
- Effective bandsize
-
getInputTypeRestriction
public VectorTypeInformation<? super NumberVector> getInputTypeRestriction()
Description copied from interface:Distance
Get the input data type of the function.- Specified by:
getInputTypeRestriction
in interfaceDistance<NumberVector>
- Specified by:
getInputTypeRestriction
in interfacePrimitiveDistance<NumberVector>
- Overrides:
getInputTypeRestriction
in classAbstractNumberVectorDistance
- Returns:
- Type restriction
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-