class MkCoPDirectoryEntry extends MTreeDirectoryEntry implements MkCoPEntry
Modifier and Type | Field and Description |
---|---|
private ApproximationLine |
conservativeApproximation
The conservative approximation.
|
private static long |
serialVersionUID
Serialization version number.
|
Constructor and Description |
---|
MkCoPDirectoryEntry()
Empty constructor for serialization purposes.
|
MkCoPDirectoryEntry(DBID objectID,
double parentDistance,
Integer nodeID,
double coveringRadius,
ApproximationLine conservativeApproximation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
approximateConservativeKnnDistance(int k)
Returns the conservative approximated knn distance of the entry.
|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
ApproximationLine |
getConservativeKnnDistanceApproximation()
Returns the conservative approximation line.
|
void |
readExternal(ObjectInput in)
Calls the super method and reads the the conservative approximation of the
knn distances of this entry from the specified input stream.
|
void |
setConservativeKnnDistanceApproximation(ApproximationLine conservativeApproximation)
Sets the conservative approximation line
|
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the conservative approximation of the knn
distances of this entry to the specified stream.
|
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID, toString
getEntryID, getPageID, hashCode, isLeafEntry
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID
isLeafEntry
private static final long serialVersionUID
private ApproximationLine conservativeApproximation
public MkCoPDirectoryEntry()
public MkCoPDirectoryEntry(DBID objectID, double parentDistance, Integer nodeID, double coveringRadius, ApproximationLine conservativeApproximation)
objectID
- the id of the routing objectparentDistance
- the distance from the object to its parentnodeID
- the id of the underlying nodecoveringRadius
- the covering radius of the entryconservativeApproximation
- the conservative approximation of the knn
distancespublic double approximateConservativeKnnDistance(int k)
approximateConservativeKnnDistance
in interface MkCoPEntry
k
- the parameter k of the knn distancepublic ApproximationLine getConservativeKnnDistanceApproximation()
getConservativeKnnDistanceApproximation
in interface MkCoPEntry
public void setConservativeKnnDistanceApproximation(ApproximationLine conservativeApproximation)
setConservativeKnnDistanceApproximation
in interface MkCoPEntry
conservativeApproximation
- the conservative approximation line to be
setpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class MTreeDirectoryEntry
out
- the stream to write the object toIOException
- Includes any I/O exceptions that may occurpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class MTreeDirectoryEntry
in
- the stream to read data from in order to restore the objectIOException
- if I/O errors occurClassNotFoundException
- If the class for an object being restored
cannot be found.public boolean equals(Object o)
equals
in class MTreeDirectoryEntry
o
- the object to be testedCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.