|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.distance.AbstractDistance<D>
de.lmu.ifi.dbs.elki.distance.NumberDistance<IntegerDistance,Integer>
de.lmu.ifi.dbs.elki.distance.IntegerDistance
public class IntegerDistance
| Field Summary | |
|---|---|
private static long |
serialVersionUID
Created serial version UID. |
| Constructor Summary | |
|---|---|
IntegerDistance()
Empty constructor for serialization purposes. |
|
IntegerDistance(int value)
Constructor |
|
| Method Summary | |
|---|---|
String |
description()
Returns a String as description of this Distance. |
int |
externalizableSize()
Returns the number of Bytes this distance uses if it is written to an external file. |
IntegerDistance |
minus(IntegerDistance distance)
Returns a new Distance by subtracting the given distance from this distance. |
IntegerDistance |
plus(IntegerDistance distance)
Returns a new distance as sum of this distance and the given distance. |
void |
readExternal(ObjectInput in)
Reads the integer value of this IntegerDistance from the specified stream. |
void |
writeExternal(ObjectOutput out)
Writes the integer value of this IntegerDistance to the specified stream. |
| Methods inherited from class de.lmu.ifi.dbs.elki.distance.NumberDistance |
|---|
compareTo, getValue, hashCode, setValue, toString |
| Methods inherited from class de.lmu.ifi.dbs.elki.distance.AbstractDistance |
|---|
equals |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
| Constructor Detail |
|---|
public IntegerDistance()
public IntegerDistance(int value)
value - distance value| Method Detail |
|---|
public String description()
Distance
public IntegerDistance minus(IntegerDistance distance)
Distance
distance - the distance to be subtracted from this distance
public IntegerDistance plus(IntegerDistance distance)
Distance
distance - the distance to be added to this distance
public void writeExternal(ObjectOutput out)
throws IOException
IOException
public void readExternal(ObjectInput in)
throws IOException
IOExceptionpublic int externalizableSize()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||