|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.index.tree.AbstractLeafEntry de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.MTreeLeafEntry<D> de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mkapp.MkAppLeafEntry<D>
class MkAppLeafEntry<D extends NumberDistance<D,?>>
Represents an entry in a leaf node of a MkApp-Tree. Additionally to an MTreeLeafEntry an MkAppLeafEntry holds the polynomial approximation of its knn-distances.
Field Summary | |
---|---|
private PolynomialApproximation |
approximation
The polynomial approximation. |
private static long |
serialVersionUID
Serial Version UID |
Constructor Summary | |
---|---|
MkAppLeafEntry()
Empty constructor for serialization purposes. |
|
MkAppLeafEntry(DBID objectID,
D parentDistance,
PolynomialApproximation approximation)
Provides a new MkAppLeafEntry with the given parameters. |
Method Summary | |
---|---|
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. |
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.MTreeLeafEntry |
---|
equals, getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID |
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.AbstractLeafEntry |
---|
getDBID, hashCode, isLeafEntry |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.MTreeEntry |
---|
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID |
Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.Entry |
---|
isLeafEntry |
Field Detail |
---|
private static final long serialVersionUID
private PolynomialApproximation approximation
Constructor Detail |
---|
public MkAppLeafEntry()
public MkAppLeafEntry(DBID objectID, D 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 distancesMethod Detail |
---|
public double approximatedValueAt(int k)
approximatedValueAt
in interface MkAppEntry<D extends NumberDistance<D,?>>
k
- the parameter k of the knn distance
public 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 MTreeLeafEntry<D extends NumberDistance<D,?>>
out
- the stream to write the object to
IOException
- Includes any I/O exceptions that may occurpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class MTreeLeafEntry<D extends NumberDistance<D,?>>
in
- the stream to read data from in order to restore the object
IOException
- if I/O errors occur
ClassNotFoundException
- If the class for an object being restored
cannot be found.public String toString()
toString
in class AbstractLeafEntry
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |