|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.maths.vectors.MathVector
The MathVector superclass provides an abstract encapsulation for vectors.
Field Summary | |
protected int |
N
The vector's dimension. |
Constructor Summary | |
MathVector(int n)
Constructs a mathematical vector. |
Method Summary | |
int |
dimension()
Returns the vector's dimension. |
protected static java.lang.String |
getInvalidComponentMsg(int i)
Returns an "invalid component" error message. |
abstract double |
norm()
Returns the norm (magnitude). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface JSci.maths.algebras.Module.Member |
scalarMultiply |
Methods inherited from interface JSci.maths.groups.AbelianGroup.Member |
add, negate, subtract |
Field Detail |
protected final int N
Constructor Detail |
public MathVector(int n)
n
- the dimension of the vector.Method Detail |
public abstract double norm()
public final int dimension()
protected static java.lang.String getInvalidComponentMsg(int i)
i
- index of the component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |