|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataVector
Class describing an abstraction of a vector for data. This is designed so data does not need to be transformed, mearly wrapped, in order to use a single implementation of standard functions such as distance functions and aggregators. Note that this interface does not guarantee ordering or the consistant order of items.
| Method Summary | |
|---|---|
java.lang.Comparable |
getCurrentIndex()
return the index at the current position of the iterator |
double |
getCurrentValue()
return the value at the current position of the iterator. |
double |
getValue(java.lang.Comparable index)
Get the value at the given index. |
boolean |
hasNext()
Does the vector contain any additional non-zero values? |
void |
next()
Move the iterator to the next non-zero index-value pair |
void |
reset()
Reset the iterator to the first index of the function, potentially creating a new ordering of objects on some data vectors (i.e. |
void |
setSize(int s)
Set the dimensionality of this vector |
int |
size()
Returns the number of dimensions of this object. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
int size()
double getValue(java.lang.Comparable index)
index - index of the desired value
void reset()
double getCurrentValue()
java.lang.Comparable getCurrentIndex()
void next()
boolean hasNext()
void setSize(int s)
s - dimensionality of the vector
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||