|
|
|||||||||
| 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.AbstractDirectoryEntry
de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.MTreeDirectoryEntry<D>
de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mkcop.MkCoPDirectoryEntry<D>
class MkCoPDirectoryEntry<D extends NumberDistance<D,?>>

Represents an entry in a directory node of an MkCop-Tree. Additionally to an MTreeDirectoryEntry an MkCoPLeafEntry holds the conservative approximation of its knn-distances.
| Field Summary | |
|---|---|
private ApproximationLine |
conservativeApproximation
The conservative approximation. |
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
MkCoPDirectoryEntry()
Empty constructor for serialization purposes. |
|
MkCoPDirectoryEntry(DBID objectID,
D parentDistance,
Integer nodeID,
D coveringRadius,
ApproximationLine conservativeApproximation)
Provides a new MkCoPDirectoryEntry with the given parameters. |
|
| Method Summary | ||
|---|---|---|
|
approximateConservativeKnnDistance(int k,
DistanceQuery<O,D> distanceFunction)
Returns the conservative approximated knn distance of the entry. |
|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
|
ApproximationLine |
getConservativeKnnDistanceApproximation()
Returns the conservative approximation line. |
|
void |
readExternal(ObjectInput in)
Calls the super method and reads the the conservative approximation of the knn distances of this entry from the specified input stream. |
|
void |
setConservativeKnnDistanceApproximation(ApproximationLine conservativeApproximation)
Sets the conservative approximation line |
|
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the conservative 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 |
|---|
getCoveringRadius, getParentDistance, getRoutingObjectID, setCoveringRadius, setParentDistance, setRoutingObjectID, toString |
| Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.AbstractDirectoryEntry |
|---|
getEntryID, getPageID, 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 ApproximationLine conservativeApproximation
| Constructor Detail |
|---|
public MkCoPDirectoryEntry()
public MkCoPDirectoryEntry(DBID objectID,
D parentDistance,
Integer nodeID,
D coveringRadius,
ApproximationLine conservativeApproximation)
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 entryconservativeApproximation - the conservative approximation of the knn
distances| Method Detail |
|---|
public <O> D approximateConservativeKnnDistance(int k,
DistanceQuery<O,D> distanceFunction)
approximateConservativeKnnDistance in interface MkCoPEntry<D extends NumberDistance<D,?>>O - Object typek - the parameter k of the knn distancedistanceFunction - the distance function
public ApproximationLine getConservativeKnnDistanceApproximation()
getConservativeKnnDistanceApproximation in interface MkCoPEntry<D extends NumberDistance<D,?>>public void setConservativeKnnDistanceApproximation(ApproximationLine conservativeApproximation)
setConservativeKnnDistanceApproximation in interface MkCoPEntry<D extends NumberDistance<D,?>>conservativeApproximation - the conservative approximation line to be
set
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class MTreeDirectoryEntry<D extends NumberDistance<D,?>>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,?>>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 boolean equals(Object o)
equals in class MTreeDirectoryEntry<D extends NumberDistance<D,?>>o - the object to be tested
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||