|
||||||||||
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.metrical.mtreevariants.mktrees.mkcop.ApproximationLine
public class ApproximationLine
Provides an approximation for knn-distances line consisting of incline m, axes intercept t and a start value for k.
Field Summary | |
---|---|
private int |
k_0
The start value for k. |
private double |
m
The incline. |
private static long |
serialVersionUID
|
private double |
t
The axes intercept. |
Constructor Summary | |
---|---|
ApproximationLine()
Empty constructor for serialization purposes. |
|
ApproximationLine(int k_0,
double m,
double t)
Provides an approximation for knn-distances line consisting of incline m, axes intercept t and a start value for k. |
Method Summary | ||
---|---|---|
boolean |
equals(Object o)
Returns true if this object is the same as the o argument; false otherwise. |
|
|
getApproximatedKnnDistance(int k,
DistanceQuery<O,D> distanceFunction)
Returns the approximated knn-distance at the specified k. |
|
int |
getK_0()
Returns the start value for k. |
|
double |
getM()
Returns the incline. |
|
double |
getT()
Returns the axes intercept. |
|
double |
getValueAt(int k)
Returns the function value of the approximation line at the specified k. |
|
int |
hashCode()
Returns a hash code value for this object |
|
void |
readExternal(ObjectInput in)
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
|
String |
toString()
Returns a string representation of the object. |
|
void |
writeExternal(ObjectOutput out)
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private double m
private double t
private int k_0
Constructor Detail |
---|
public ApproximationLine()
public ApproximationLine(int k_0, double m, double t)
k_0
- the start value for km
- the inclinet
- the axes interceptMethod Detail |
---|
public double getM()
public double getT()
public int getK_0()
public double getValueAt(int k)
k
- the value for which the function value of the approximation line
should be returned
public <O,D extends NumberDistance<D,?>> D getApproximatedKnnDistance(int k, DistanceQuery<O,D> distanceFunction)
O
- Object typeD
- Distance typek
- the value for which the knn-distance should be returneddistanceFunction
- the distance function
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
- the stream to write the object to
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
in
- the stream to read data from in order to restore the object
IOException
public boolean equals(Object o)
false
otherwise.
equals
in class Object
o
- the reference object with which to compare.
true
if this object is the same as the obj argument;
false
otherwise.public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |