Java weka.core.matrix DoubleVector fields, constructors, methods, implement or subclass

Example usage for Java weka.core.matrix DoubleVector fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for weka.core.matrix DoubleVector.

The text is from its open source code.

Constructor

DoubleVector(int n)
Constructs an n-vector of zeros.
DoubleVector(double v[])
Constructs a vector directly from a double array

Method

doubleget(int i)
Gets a single element.
DoubleVectorminus(double x)
Subtracts a value
DoubleVectorminus(DoubleVector v)
Subtracts another DoubleVector element by element
doublenorm1()
Returns the L1-norm of the vector
doublenorm2()
Returns the L2-norm of the vector
intsize()
Gets the size of the vector.
DoubleVectortimes(double s)
Multiplies a scalar
DoubleVectortimes(DoubleVector v)
Multiplies another DoubleVector element by element