|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Abstract interface to a generic vector.
Method Summary | |
Complex |
elementAt(int index)
Gets the value of an element by its index. |
Complex |
elementAt(int index,
Complex results)
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,
ComplexI value)
Sets the value of an element by its index. |
void |
setElements(ComplexI 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. |
Complex |
sum()
Returns the sum of the elements in the vector. |
Complex |
sum(int begin)
Returns the sum of the elements in the subvector. |
Complex |
sum(int begin,
int end)
Returns the sum of the elements in the subvector. |
Complex |
sumOfSquaredDifferences(ComplexI scaler)
Returns the sum the squared differences between 'scaler' and the elements in the vector. |
Complex |
sumOfSquaredDifferences(int begin,
ComplexI scaler)
Returns the sum the squared differences between 'scaler' and the elements in the subvector. |
Complex |
sumOfSquaredDifferences(int begin,
int end,
ComplexI scaler)
Returns the sum the squared differences between 'scaler' and the selected elements in the subvector. |
Complex |
sumOfSquares()
Returns the sum of the squares of the elements in the vector. |
Complex |
sumOfSquares(int begin)
Returns the sum of the squares of the elements in the subvector. |
Complex |
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.complex.ComplexContainerI |
equals,
getEpsilon,
setEpsilon |
Method Detail |
public boolean isNull(int index)
public int size()
public int sizeOfElements()
public double[] getArray()
public void setElementAt(int index, ComplexI value)
public void setElements(ComplexI value)
public void setElements(VectorI values)
public Complex elementAt(int index)
public Complex elementAt(int index, Complex results)
public java.util.Enumeration elements()
public Complex sum()
public Complex sum(int begin)
public Complex sum(int begin, int end)
public Complex sumOfSquares()
public Complex sumOfSquares(int begin)
public Complex sumOfSquares(int begin, int end)
public Complex sumOfSquaredDifferences(ComplexI scaler)
public Complex sumOfSquaredDifferences(int begin, ComplexI scaler)
public Complex sumOfSquaredDifferences(int begin, int end, ComplexI scaler)
public boolean equals(VectorI vector)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |