class MkAppDirectoryEntry<D extends NumberDistance<D,?>> extends MTreeDirectoryEntry<D> implements MkAppEntry<D>
Modifier and Type | Field and Description |
---|---|
private PolynomialApproximation |
approximation
The polynomial approximation.
|
private static long |
serialVersionUID
Serial version UID
|
Constructor and Description |
---|
MkAppDirectoryEntry()
Empty constructor for serialization purposes.
|
MkAppDirectoryEntry(DBID objectID,
D parentDistance,
Integer nodeID,
D coveringRadius,
PolynomialApproximation approximation)
Provides a new MkCoPDirectoryEntry with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
double |
approximatedValueAt(int k)
Returns the approximated value at the specified k.
|
PolynomialApproximation |
getKnnDistanceApproximation()
Returns the polynomial approximation.
|
void |
readExternal(ObjectInput in)
Calls the super method and reads the the polynomial approximation of the
knn distances of this entry from the specified input stream.
|
void |
setKnnDistanceApproximation(PolynomialApproximation approximation)
Sets the polynomial approximation.
|
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the polynomial approximation of the knn
distances of this entry to the specified stream.
|
equals, 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 PolynomialApproximation approximation
public MkAppDirectoryEntry()
public MkAppDirectoryEntry(DBID objectID, D parentDistance, Integer nodeID, D coveringRadius, PolynomialApproximation approximation)
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 entryapproximation
- the polynomial approximation of the knn distancespublic double approximatedValueAt(int k)
approximatedValueAt
in interface MkAppEntry<D extends NumberDistance<D,?>>
k
- the parameter k of the knn distancepublic PolynomialApproximation getKnnDistanceApproximation()
getKnnDistanceApproximation
in interface MkAppEntry<D extends NumberDistance<D,?>>
public void setKnnDistanceApproximation(PolynomialApproximation approximation)
setKnnDistanceApproximation
in interface MkAppEntry<D extends NumberDistance<D,?>>
approximation
- the polynomial approximation to be setpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class MTreeDirectoryEntry<D extends NumberDistance<D,?>>
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<D extends NumberDistance<D,?>>
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.