|
|
|||||||||||||||||||||
| 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.MTreeLeafEntry<D>
de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mkcop.MkCoPLeafEntry<D,N>
class MkCoPLeafEntry<D extends NumberDistance<D,N>,N extends Number>
Represents an entry in a leaf node of a MkCoP-Tree. Additionally to an MTreeLeafEntry an MkCoPLeafEntry holds the conservative and progressive approximation of its knn-distances.
| Field Summary | |
|---|---|
private ApproximationLine |
conservativeApproximation
The conservative approximation. |
private ApproximationLine |
progressiveApproximation
The progressive approximation. |
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
MkCoPLeafEntry()
Empty constructor for serialization purposes. |
|
MkCoPLeafEntry(Integer objectID,
D parentDistance,
ApproximationLine conservativeApproximation,
ApproximationLine progressiveApproximation)
Provides a new MkCoPLeafEntry with the given parameters. |
|
| Method Summary | ||
|---|---|---|
|
approximateConservativeKnnDistance(int k,
DistanceFunction<O,D> distanceFunction)
Returns the conservative approximated knn distance of the entry. |
|
|
approximateProgressiveKnnDistance(int k,
DistanceFunction<O,D> distanceFunction)
Returns the progressive 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. |
|
ApproximationLine |
getProgressiveKnnDistanceApproximation()
Returns the progressive approximation line. |
|
void |
readExternal(ObjectInput in)
Calls the super method and reads the the conservative and progressive approximation of the knn distances of this entry from the specified input stream. |
|
void |
setConservativeKnnDistanceApproximation(ApproximationLine conservativeApproximation)
Sets the conservative approximation line |
|
void |
setProgressiveKnnDistanceApproximation(ApproximationLine progressiveApproximation)
Sets the progressive approximation line |
|
String |
toString()
Returns a string representation of this entry. |
|
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the conservative and progressive 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 |
|---|
getCoveringRadius, getParentDistance, getRoutingObjectID, isLeafEntry, setCoveringRadius, setParentDistance, setRoutingObjectID |
| 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 ApproximationLine conservativeApproximation
private ApproximationLine progressiveApproximation
| Constructor Detail |
|---|
public MkCoPLeafEntry()
public MkCoPLeafEntry(Integer objectID,
D parentDistance,
ApproximationLine conservativeApproximation,
ApproximationLine progressiveApproximation)
objectID - the id of the underlying data objectparentDistance - the distance from the underlying data object to its parent's routing objectconservativeApproximation - the conservative approximation of the knn distancesprogressiveApproximation - the progressive approximation of the knn distances| Method Detail |
|---|
public <O extends DatabaseObject> D approximateConservativeKnnDistance(int k,
DistanceFunction<O,D> distanceFunction)
approximateConservativeKnnDistance in interface MkCoPEntry<D extends NumberDistance<D,N>,N extends Number>O - Object typek - the parameter k of the knn distancedistanceFunction - the distance function
public <O extends DatabaseObject> D approximateProgressiveKnnDistance(int k,
DistanceFunction<O,D> distanceFunction)
O - Object typek - the parameter k of the knn distancedistanceFunction - the distance function
public ApproximationLine getConservativeKnnDistanceApproximation()
getConservativeKnnDistanceApproximation in interface MkCoPEntry<D extends NumberDistance<D,N>,N extends Number>public ApproximationLine getProgressiveKnnDistanceApproximation()
public void setConservativeKnnDistanceApproximation(ApproximationLine conservativeApproximation)
setConservativeKnnDistanceApproximation in interface MkCoPEntry<D extends NumberDistance<D,N>,N extends Number>conservativeApproximation - the conservative approximation line to be setpublic void setProgressiveKnnDistanceApproximation(ApproximationLine progressiveApproximation)
progressiveApproximation - the progressive approximation line to be set
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class MTreeLeafEntry<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 MTreeLeafEntry<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.public boolean equals(Object o)
equals in class MTreeLeafEntry<D extends NumberDistance<D,N>>o - the object to be tested
public String toString()
toString in class AbstractEntry
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||