Package elki.index.vafile
Class PartialVAFile.PartialVACandidate
- java.lang.Object
-
- elki.index.vafile.PartialVAFile.PartialVACandidate
-
- All Implemented Interfaces:
java.lang.Comparable<PartialVAFile.PartialVACandidate>
- Enclosing class:
- PartialVAFile<V extends NumberVector>
protected static class PartialVAFile.PartialVACandidate extends java.lang.Object implements java.lang.Comparable<PartialVAFile.PartialVACandidate>
Object in a VA approximation.- Author:
- Thomas Bernecker, Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private VectorApproximation
approx
The actual approximation.protected double
maxDistP
(Current) maximum distance of this candidate.protected double
minDistP
(Current) minimum distance of this candidate.
-
Constructor Summary
Constructors Constructor Description PartialVACandidate(VectorApproximation approx)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(PartialVAFile.PartialVACandidate o)
DBIDRef
getApprox()
Get the vector approximation.int
getApproximation(int dimension)
Get a single approximation value.java.lang.String
toString()
-
-
-
Field Detail
-
maxDistP
protected double maxDistP
(Current) maximum distance of this candidate.
-
minDistP
protected double minDistP
(Current) minimum distance of this candidate.
-
approx
private final VectorApproximation approx
The actual approximation.
-
-
Constructor Detail
-
PartialVACandidate
public PartialVACandidate(VectorApproximation approx)
Constructor.- Parameters:
approx
- The actual approximation
-
-
Method Detail
-
getApproximation
public int getApproximation(int dimension)
Get a single approximation value.- Parameters:
dimension
- Dimension- Returns:
- Value
-
getApprox
public DBIDRef getApprox()
Get the vector approximation.- Returns:
- Vector approximation
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(PartialVAFile.PartialVACandidate o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<PartialVAFile.PartialVACandidate>
-
-