Class MkAppLeafEntry
- java.lang.Object
-
- elki.index.tree.metrical.mtreevariants.MTreeLeafEntry
-
- elki.index.tree.metrical.mtreevariants.mktrees.mkapp.MkAppLeafEntry
-
- All Implemented Interfaces:
LeafEntry,MkAppEntry,MTreeEntry,java.io.Externalizable,java.io.Serializable
class MkAppLeafEntry extends MTreeLeafEntry implements MkAppEntry
Represents an entry in a leaf node of a MkApp-Tree. Additionally to an MTreeLeafEntry an MkAppLeafEntry holds the polynomial approximation of its knn-distances.- Since:
- 0.1
- Author:
- Elke Achtert
-
-
Field Summary
Fields Modifier and Type Field Description private PolynomialApproximationapproximationThe polynomial approximation.private static longserialVersionUIDSerial Version UID
-
Constructor Summary
Constructors Constructor Description MkAppLeafEntry()Empty constructor for serialization purposes.MkAppLeafEntry(DBID objectID, double parentDistance, PolynomialApproximation approximation)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleapproximatedValueAt(int k)Returns the approximated value at the specified k.PolynomialApproximationgetKnnDistanceApproximation()Returns the polynomial approximation.voidreadExternal(java.io.ObjectInput in)Calls the super method and reads the the polynomial approximation of the knn distances of this entry from the specified input stream.voidsetKnnDistanceApproximation(PolynomialApproximation approximation)Sets the polynomial approximation.java.lang.StringtoString()Returns a string representation of this entry.voidwriteExternal(java.io.ObjectOutput out)Calls the super method and writes the polynomiale approximation of the knn distances of this entry to the specified stream.-
Methods inherited from class elki.index.tree.metrical.mtreevariants.MTreeLeafEntry
equals, getCoveringRadius, getDBID, getParentDistance, getRoutingObjectID, hashCode, setCoveringRadius, setParentDistance, setRoutingObjectID
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface elki.index.tree.metrical.mtreevariants.MTreeEntry
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial Version UID- See Also:
- Constant Field Values
-
approximation
private PolynomialApproximation approximation
The polynomial approximation.
-
-
Constructor Detail
-
MkAppLeafEntry
public MkAppLeafEntry()
Empty constructor for serialization purposes.
-
MkAppLeafEntry
public MkAppLeafEntry(DBID objectID, double parentDistance, PolynomialApproximation approximation)
Constructor.- Parameters:
objectID- the id of the underlying data objectparentDistance- the distance from the underlying data object to its parent's routing objectapproximation- the polynomial approximation of the knn distances
-
-
Method Detail
-
approximatedValueAt
public double approximatedValueAt(int k)
Returns the approximated value at the specified k.- Specified by:
approximatedValueAtin interfaceMkAppEntry- Parameters:
k- the parameter k of the knn distance- Returns:
- the approximated value at the specified k
-
getKnnDistanceApproximation
public PolynomialApproximation getKnnDistanceApproximation()
Returns the polynomial approximation.- Specified by:
getKnnDistanceApproximationin interfaceMkAppEntry- Returns:
- the polynomial approximation
-
setKnnDistanceApproximation
public void setKnnDistanceApproximation(PolynomialApproximation approximation)
Sets the polynomial approximation.- Specified by:
setKnnDistanceApproximationin interfaceMkAppEntry- Parameters:
approximation- the polynomial approximation to be set
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOExceptionCalls the super method and writes the polynomiale approximation of the knn distances of this entry to the specified stream.- Specified by:
writeExternalin interfacejava.io.Externalizable- Overrides:
writeExternalin classMTreeLeafEntry- Parameters:
out- the stream to write the object to- Throws:
java.io.IOException- Includes any I/O exceptions that may occur
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundExceptionCalls the super method and reads the the polynomial approximation of the knn distances of this entry from the specified input stream.- Specified by:
readExternalin interfacejava.io.Externalizable- Overrides:
readExternalin classMTreeLeafEntry- Parameters:
in- the stream to read data from in order to restore the object- Throws:
java.io.IOException- if I/O errors occurjava.lang.ClassNotFoundException- If the class for an object being restored cannot be found.
-
toString
public java.lang.String toString()
Returns a string representation of this entry.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of this entry
-
-