class MkAppDirectoryEntry extends MTreeDirectoryEntry implements MkAppEntry
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,
double parentDistance,
int nodeID,
double coveringRadius,
PolynomialApproximation approximation)
Constructor.
|
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(java.io.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(java.io.ObjectOutput out)
Calls the super method and writes the polynomial approximation of the knn
distances 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 PolynomialApproximation approximation
public MkAppDirectoryEntry()
public MkAppDirectoryEntry(DBID objectID, double parentDistance, int nodeID, double 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
k
- the parameter k of the knn distancepublic PolynomialApproximation getKnnDistanceApproximation()
getKnnDistanceApproximation
in interface MkAppEntry
public void setKnnDistanceApproximation(PolynomialApproximation approximation)
setKnnDistanceApproximation
in interface MkAppEntry
approximation
- the polynomial approximation to be setpublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class MTreeDirectoryEntry
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 MTreeDirectoryEntry
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.Copyright © 2019 ELKI Development Team. License information.