|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.obsearch.index.OBVectorLong
public class OBVectorLong
L1 distance implementation for longs.
| Constructor Summary | |
|---|---|
OBVectorLong()
Default constructor must be provided by every object that implements the interface OB. |
|
OBVectorLong(long[] data)
|
|
OBVectorLong(Random r,
int dim)
Creates a new vector with dim dimensions created by Random.nextLong() |
|
| Method Summary | |
|---|---|
long |
distance(OBLong object)
Calculates the similarity of "this" and "object". |
boolean |
equals(Object o)
|
void |
load(byte[] input)
|
byte[] |
store()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OBVectorLong()
public OBVectorLong(long[] data)
public OBVectorLong(Random r,
int dim)
| Method Detail |
|---|
public boolean equals(Object o)
equals in class Object
public long distance(OBLong object)
throws net.obsearch.exception.OBException
OBLong
distance in interface OBLongobject - The object of type OBLong to be compared
net.obsearch.exception.OBException - User generated exception
public void load(byte[] input)
throws net.obsearch.exception.OBException,
IOException
load in interface net.obsearch.Storablenet.obsearch.exception.OBException
IOException
public byte[] store()
throws net.obsearch.exception.OBException,
IOException
store in interface net.obsearch.Storablenet.obsearch.exception.OBException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||