
class MkAppLeafEntry extends MTreeLeafEntry implements MkAppEntry
| Modifier and Type | Field and Description |
|---|---|
private PolynomialApproximation |
approximation
The polynomial approximation.
|
private static long |
serialVersionUID
Serial Version UID
|
| Constructor and Description |
|---|
MkAppLeafEntry()
Empty constructor for serialization purposes.
|
MkAppLeafEntry(DBID objectID,
double parentDistance,
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(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.
|
String |
toString()
Returns a string representation of this entry.
|
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the polynomiale approximation of the knn
distances of this entry to the specified stream.
|
equals, 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 PolynomialApproximation approximation
public MkAppLeafEntry()
public MkAppLeafEntry(DBID objectID, double parentDistance, PolynomialApproximation approximation)
objectID - the id of the underlying data objectparentDistance - the distance from the underlying data object to its
parent's routing objectapproximation - the polynomial approximation of the knn distancespublic double approximatedValueAt(int k)
approximatedValueAt in interface MkAppEntryk - the parameter k of the knn distancepublic PolynomialApproximation getKnnDistanceApproximation()
getKnnDistanceApproximation in interface MkAppEntrypublic void setKnnDistanceApproximation(PolynomialApproximation approximation)
setKnnDistanceApproximation in interface MkAppEntryapproximation - the polynomial approximation 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 String toString()
toString in class AbstractLeafEntryCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.