Example usage for Java weka.core.matrix DoubleVector fields, constructors, methods, implement or subclass
The text is from its open source code.
DoubleVector(int n) Constructs an n-vector of zeros. | |
DoubleVector(double v[]) Constructs a vector directly from a double array |
double | get(int i) Gets a single element. |
DoubleVector | minus(double x) Subtracts a value |
DoubleVector | minus(DoubleVector v) Subtracts another DoubleVector element by element |
double | norm1() Returns the L1-norm of the vector |
double | norm2() Returns the L2-norm of the vector |
int | size() Gets the size of the vector. |
DoubleVector | times(double s) Multiplies a scalar |
DoubleVector | times(DoubleVector v) Multiplies another DoubleVector element by element |