Example usage for Java org.apache.mahout.math DenseVector fields, constructors, methods, implement or subclass
The text is from its open source code.
DenseVector(double[] values) Construct a new instance using provided values | |
DenseVector(int cardinality) Construct a new instance of the given cardinality | |
DenseVector(Vector vector) Copy-constructor (for use in turning a sparse vector into a dense one, for example) | |
DenseVector(double[] values, boolean shallowCopy) | |
DenseVector(DenseVector values, boolean shallowCopy) | |
DenseVector() For serialization purposes only |
Vector | assign(double value) |
Vector | assign(DenseVector vector) |
DenseVector | clone() |
double | dot(Vector x) |
double | get(int index) |
double | getQuick(int index) |
double | maxValue() |
int | maxValueIndex() |
Vector | minus(Vector that) |
Vector | plus(double x) |
void | set(int index, double value) |
void | setQuick(int index, double value) |
int | size() |
Vector | times(double x) |
double | zSum() |