
class MkCoPLeafEntry extends MTreeLeafEntry implements MkCoPEntry
| Modifier and Type | Field and Description |
|---|---|
private ApproximationLine |
conservativeApproximation
The conservative approximation.
|
private ApproximationLine |
progressiveApproximation
The progressive approximation.
|
private static long |
serialVersionUID
Serialization version ID.
|
| Constructor and Description |
|---|
MkCoPLeafEntry()
Empty constructor for serialization purposes.
|
MkCoPLeafEntry(DBID objectID,
double parentDistance,
ApproximationLine conservativeApproximation,
ApproximationLine progressiveApproximation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
approximateConservativeKnnDistance(int k)
Returns the conservative approximated knn distance of the entry.
|
double |
approximateProgressiveKnnDistance(int k)
Returns the progressive 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.
|
ApproximationLine |
getProgressiveKnnDistanceApproximation()
Returns the progressive approximation line.
|
void |
readExternal(ObjectInput in)
Calls the super method and reads the the conservative and progressive
approximation of the knn distances of this entry from the specified input
stream.
|
void |
setConservativeKnnDistanceApproximation(ApproximationLine conservativeApproximation)
Sets the conservative approximation line
|
void |
setProgressiveKnnDistanceApproximation(ApproximationLine progressiveApproximation)
Sets the progressive approximation line
|
String |
toString()
Returns a string representation of this entry.
|
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the conservative and progressive
approximation of the knn distances of this entry to the specified stream.
|
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectIDgetDBID, hashCode, isLeafEntryclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectIDisLeafEntryprivate static final long serialVersionUID
private ApproximationLine conservativeApproximation
private ApproximationLine progressiveApproximation
public MkCoPLeafEntry()
public MkCoPLeafEntry(DBID objectID, double parentDistance, ApproximationLine conservativeApproximation, ApproximationLine progressiveApproximation)
objectID - the id of the underlying data objectparentDistance - the distance from the underlying data object to its
parent's routing objectconservativeApproximation - the conservative approximation of the knn
distancesprogressiveApproximation - the progressive approximation of the knn
distancespublic double approximateConservativeKnnDistance(int k)
approximateConservativeKnnDistance in interface MkCoPEntryk - the parameter k of the knn distancepublic double approximateProgressiveKnnDistance(int k)
k - the parameter k of the knn distancepublic ApproximationLine getConservativeKnnDistanceApproximation()
getConservativeKnnDistanceApproximation in interface MkCoPEntrypublic ApproximationLine getProgressiveKnnDistanceApproximation()
public void setConservativeKnnDistanceApproximation(ApproximationLine conservativeApproximation)
setConservativeKnnDistanceApproximation in interface MkCoPEntryconservativeApproximation - the conservative approximation line to be
setpublic void setProgressiveKnnDistanceApproximation(ApproximationLine progressiveApproximation)
progressiveApproximation - the progressive approximation line to be
setpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class MTreeLeafEntryout - 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 ExternalizablereadExternal in class MTreeLeafEntryin - 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 MTreeLeafEntryo - the object to be testedpublic String toString()
toString in class AbstractLeafEntryCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.