|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.distance.AbstractDistance<D>
de.lmu.ifi.dbs.elki.distance.NumberDistance<BitDistance>
de.lmu.ifi.dbs.elki.distance.BitDistance
public class BitDistance
TODO arthur comment
| Field Summary | |
|---|---|
private boolean |
bit
The bit value of this distance. |
private static long |
serialVersionUID
Generated serial version UID |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug |
| Constructor Summary | |
|---|---|
BitDistance()
|
|
BitDistance(boolean bit)
|
|
| Method Summary | |
|---|---|
int |
compareTo(BitDistance o)
|
int |
externalizableSize()
Retuns the number of Bytes this distance uses if it is written to an external file. |
double |
getDoubleValue()
Returns the double value of this distance. |
int |
hashCode()
Any extending class should implement a proper hashCode method. |
boolean |
isBit()
|
BitDistance |
minus(BitDistance distance)
Returns a new Distance by subtracting the given distance from this distance. |
BitDistance |
plus(BitDistance distance)
Returns a new distance as sum of this distance and the given distance. |
void |
readExternal(ObjectInput in)
|
String |
toString()
Returns a string representation of the object. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class de.lmu.ifi.dbs.elki.distance.NumberDistance |
|---|
description |
| Methods inherited from class de.lmu.ifi.dbs.elki.distance.AbstractDistance |
|---|
equals |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private boolean bit
| Constructor Detail |
|---|
public BitDistance()
public BitDistance(boolean bit)
| Method Detail |
|---|
public double getDoubleValue()
NumberDistance
getDoubleValue in class NumberDistance<BitDistance>NumberDistance.getDoubleValue()public int hashCode()
AbstractDistance
hashCode in class AbstractDistance<BitDistance>AbstractDistance.hashCode()public BitDistance plus(BitDistance distance)
Distance
distance - the distancce to be added to this distance
Distance.plus(Distance)public BitDistance minus(BitDistance distance)
Distance
distance - the distance to be subtracted from this distance
Distance.minus(Distance)public int externalizableSize()
Distance
Distance.externalizableSize()public int compareTo(BitDistance o)
Comparable.compareTo(Object)
public void writeExternal(ObjectOutput out)
throws IOException
IOExceptionExternalizable.writeExternal(java.io.ObjectOutput)
public void readExternal(ObjectInput in)
throws IOException
IOExceptionExternalizable.readExternal(java.io.ObjectInput)public boolean isBit()
public String toString()
toString in interface Distance<BitDistance>toString in class Object
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||