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.
|
ApproximationLine |
getConservativeKnnDistanceApproximation()
Returns the conservative approximation line.
|
ApproximationLine |
getProgressiveKnnDistanceApproximation()
Returns the progressive approximation line.
|
void |
readExternal(java.io.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
|
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out)
Calls the super method and writes the conservative and progressive
approximation of the knn distances of this entry to the specified stream.
|
equals, getCoveringRadius, getDBID, getParentDistance, getRoutingObjectID, hashCode, setCoveringRadius, setParentDistance, setRoutingObjectID
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID
private 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 MkCoPEntry
k
- the parameter k of the knn distancepublic double approximateProgressiveKnnDistance(int k)
k
- the parameter k of the knn distancepublic ApproximationLine getConservativeKnnDistanceApproximation()
getConservativeKnnDistanceApproximation
in interface MkCoPEntry
public ApproximationLine getProgressiveKnnDistanceApproximation()
public void setConservativeKnnDistanceApproximation(ApproximationLine conservativeApproximation)
setConservativeKnnDistanceApproximation
in interface MkCoPEntry
conservativeApproximation
- the conservative approximation line to be
setpublic void setProgressiveKnnDistanceApproximation(ApproximationLine progressiveApproximation)
progressiveApproximation
- the progressive approximation line to be
setpublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class MTreeLeafEntry
out
- the stream to write the object tojava.io.IOException
- Includes any I/O exceptions that may occurpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class MTreeLeafEntry
in
- the stream to read data from in order to restore the objectjava.io.IOException
- if I/O errors occurjava.lang.ClassNotFoundException
- If the class for an object being restored
cannot be found.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.