|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nz.ac.waikato.mcennis.rat.reusablecores.datavector.ListSetDataVector.RightVector
public class ListSetDataVector.RightVector
Data vector backed by a Set
Constructor Summary | |
---|---|
ListSetDataVector.RightVector()
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
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 class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListSetDataVector.RightVector()
Method Detail |
---|
public int size()
DataVector
size
in interface DataVector
public void setSize(int s)
DataVector
setSize
in interface DataVector
s
- dimensionality of the vectorpublic double getValue(java.lang.Comparable index)
DataVector
getValue
in interface DataVector
index
- index of the desired value
public void reset()
DataVector
reset
in interface DataVector
public double getCurrentValue()
DataVector
getCurrentValue
in interface DataVector
public java.lang.Comparable getCurrentIndex()
DataVector
getCurrentIndex
in interface DataVector
public void next()
DataVector
next
in interface DataVector
public boolean hasNext()
DataVector
hasNext
in interface DataVector
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |