
class MkMaxLeafEntry extends MTreeLeafEntry implements MkMaxEntry
MkMaxTree. Additionally to
an MTreeLeafEntry an MkMaxLeafEntry holds the k-nearest neighbor distance of
the underlying data object.| Modifier and Type | Field and Description |
|---|---|
private double |
knnDistance
The k-nearest neighbor distance of the underlying data object.
|
private static long |
serialVersionUID
Serial version number
|
| Constructor and Description |
|---|
MkMaxLeafEntry()
Empty constructor for serialization purposes.
|
MkMaxLeafEntry(DBID objectID,
double parentDistance,
double knnDistance)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
double |
getKnnDistance()
Returns the knn distance of the entry.
|
void |
readExternal(ObjectInput in)
Calls the super method and reads the knn distance of this entry from the
specified input stream.
|
void |
setKnnDistance(double knnDistance)
Sets the knn distance of the entry.
|
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the knn distance of this entry to the
specified stream.
|
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectIDgetDBID, hashCode, isLeafEntry, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectIDisLeafEntryprivate static final long serialVersionUID
private double knnDistance
public MkMaxLeafEntry()
public MkMaxLeafEntry(DBID objectID, double parentDistance, double knnDistance)
objectID - the id of the underlying data objectparentDistance - the distance from the underlying data object to its
parent's routing objectknnDistance - the knn distance of the underlying data objectpublic double getKnnDistance()
MkMaxEntrygetKnnDistance in interface MkMaxEntrypublic void setKnnDistance(double knnDistance)
MkMaxEntrysetKnnDistance in interface MkMaxEntryknnDistance - the knn distance to be setpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class MTreeLeafEntryIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class MTreeLeafEntryClassNotFoundException - If the class for an object being restored
cannot be found.IOExceptionpublic boolean equals(Object o)
equals in class MTreeLeafEntryo - the object to be testedCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.