|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Abstract interface to a generic vector.
Method Summary | |
double |
elementAt(int index)
Gets the value of an element by its index. |
java.util.Enumeration |
elements()
Returns an enumeration of the non-null elements in the vector. |
boolean |
equals(VectorI vector)
Returns true if the vectors are numerically equal. |
double[] |
getArray()
Returns a new array containing the values in vector. |
boolean |
isNull(int index)
Returns true if an element has no value associated with it. |
void |
setElementAt(int index,
double value)
Sets the value of an element by its index. |
void |
setElements(double value)
Sets the value of all the non-null elements. |
void |
setElements(VectorI values)
Sets the value of the elements from the non-null values in 'values'. |
int |
size()
Returns the number of elements in the vector. |
int |
sizeOfElements()
Returns the number of non-null elements in the vector. |
double |
sum()
Returns the sum of the elements in the vector. |
double |
sum(int begin)
Returns the sum of the elements in the subvector. |
double |
sum(int begin,
int end)
Returns the sum of the elements in the subvector. |
double |
sumOfSquaredDifferences(double scaler)
Returns the sum the squared differences between 'scaler' and the elements in the vector. |
double |
sumOfSquaredDifferences(int begin,
double scaler)
Returns the sum the squared differences between 'scaler' and the elements in the subvector. |
double |
sumOfSquaredDifferences(int begin,
int end,
double scaler)
Returns the sum the squared differences between 'scaler' and the selected elements in the subvector. |
double |
sumOfSquares()
Returns the sum of the squares of the elements in the vector. |
double |
sumOfSquares(int begin)
Returns the sum of the squares of the elements in the subvector. |
double |
sumOfSquares(int begin,
int end)
Returns the sum of the squares of the selected elements in the subvector. |
Methods inherited from interface drasys.or.matrix.RealContainerI |
equals,
getEpsilon,
setEpsilon |
Method Detail |
public boolean isNull(int index)
public int size()
public int sizeOfElements()
public double[] getArray()
public void setElementAt(int index, double value)
public void setElements(double value)
public void setElements(VectorI values)
public double elementAt(int index)
public java.util.Enumeration elements()
public double sum()
public double sum(int begin)
public double sum(int begin, int end)
public double sumOfSquares()
public double sumOfSquares(int begin)
public double sumOfSquares(int begin, int end)
public double sumOfSquaredDifferences(double scaler)
public double sumOfSquaredDifferences(int begin, double scaler)
public double sumOfSquaredDifferences(int begin, int end, double scaler)
public boolean equals(VectorI vector)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |