class MkMaxDirectoryEntry extends MTreeDirectoryEntry implements MkMaxEntry
MkMaxTree
. Additionally
to an MTreeDirectoryEntry an MkMaxDirectoryEntry holds the knn distance of
the underlying MkMax-Tree node.Modifier and Type | Field and Description |
---|---|
private double |
knnDistance
The aggregated k-nearest neighbor distance of the underlying MkMax-Tree
node.
|
private static long |
serialVersionUID
Serial version UID
|
Constructor and Description |
---|
MkMaxDirectoryEntry()
Empty constructor for serialization purposes.
|
MkMaxDirectoryEntry(DBID objectID,
double parentDistance,
int nodeID,
double coveringRadius,
double knnDistance)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getKnnDistance()
Returns the knn distance of the entry.
|
void |
readExternal(java.io.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(java.io.ObjectOutput out)
Calls the super method and writes the knn distance of this entry to the
specified stream.
|
equals, getCoveringRadius, getPageID, getParentDistance, getRoutingObjectID, hashCode, setCoveringRadius, setParentDistance, setRoutingObjectID, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID
private static final long serialVersionUID
private double knnDistance
public MkMaxDirectoryEntry()
public MkMaxDirectoryEntry(DBID objectID, double parentDistance, int nodeID, double coveringRadius, double knnDistance)
objectID
- the id of the routing objectparentDistance
- the distance from the routing object of this entry to
its parent's routing objectnodeID
- the id of the underlying nodecoveringRadius
- the covering radius of the entryknnDistance
- the aggregated knn distance of the underlying MkMax-Tree
nodepublic double getKnnDistance()
MkMaxEntry
getKnnDistance
in interface MkMaxEntry
public void setKnnDistance(double knnDistance)
MkMaxEntry
setKnnDistance
in interface MkMaxEntry
knnDistance
- the knn distance to be setpublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class MTreeDirectoryEntry
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class MTreeDirectoryEntry
java.io.IOException
java.lang.ClassNotFoundException
Copyright © 2019 ELKI Development Team. License information.