|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.index.tree.AbstractEntry
de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.MTreeDirectoryEntry<D>
de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mkapp.MkAppDirectoryEntry<D,N>
class MkAppDirectoryEntry<D extends NumberDistance<D,N>,N extends Number>
Represents an entry in a directory node of a MkApp-Tree. Additionally to an MTreeDirectoryEntry an MkAppDirectoryEntry holds the polynomial approximation of its knn-distances.
| Field Summary | |
|---|---|
private PolynomialApproximation |
approximation
The polynomial approximation. |
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
MkAppDirectoryEntry()
Empty constructor for serialization purposes. |
|
MkAppDirectoryEntry(Integer objectID,
D parentDistance,
Integer nodeID,
D coveringRadius,
PolynomialApproximation approximation)
Provides a new MkCoPDirectoryEntry 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. |
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the polynomial 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.MTreeDirectoryEntry |
|---|
equals, getCoveringRadius, getParentDistance, getRoutingObjectID, isLeafEntry, setCoveringRadius, setParentDistance, setRoutingObjectID, toString |
| Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.AbstractEntry |
|---|
getID, hashCode, setID |
| 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 |
|---|
getID, isLeafEntry, setID |
| Field Detail |
|---|
private static final long serialVersionUID
private PolynomialApproximation approximation
| Constructor Detail |
|---|
public MkAppDirectoryEntry()
public MkAppDirectoryEntry(Integer 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 distances| Method Detail |
|---|
public double approximatedValueAt(int k)
approximatedValueAt in interface MkAppEntry<D extends NumberDistance<D,N>,N extends Number>k - the parameter k of the knn distance
public PolynomialApproximation getKnnDistanceApproximation()
getKnnDistanceApproximation in interface MkAppEntry<D extends NumberDistance<D,N>,N extends Number>public void setKnnDistanceApproximation(PolynomialApproximation approximation)
setKnnDistanceApproximation in interface MkAppEntry<D extends NumberDistance<D,N>,N extends Number>approximation - the polynomial approximation to be set
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class MTreeDirectoryEntry<D extends NumberDistance<D,N>>out - the stream to write the object to
IOException - Includes any I/O exceptions that may occur
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class MTreeDirectoryEntry<D extends NumberDistance<D,N>>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.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||