public abstract class AbstractVector extends Object implements Vector
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractVector.LocalElement |
Vector.Element
Modifier and Type | Field and Description |
---|---|
protected double |
lengthSquared |
Modifier | Constructor and Description |
---|---|
protected |
AbstractVector(int size) |
finalize, getClass, notify, notifyAll, wait, wait, wait
getNumNondefaultElements, getQuick, isDense, isSequentialAccess, iterateNonZero, iterator, like, setQuick
forEach, spliterator
public double aggregate(DoubleDoubleFunction aggregator, DoubleFunction map)
public double aggregate(Vector other, DoubleDoubleFunction aggregator, DoubleDoubleFunction combiner)
public Vector clone()
public double dotSelf()
public Vector.Element getElement(int index)
getElement
in interface Vector
public Vector logNormalize()
logNormalize
in interface Vector
public Vector logNormalize(double power)
logNormalize
in interface Vector
public Vector logNormalize(double power, double normLength)
public double getLengthSquared()
getLengthSquared
in interface Vector
public double getDistanceSquared(Vector v)
getDistanceSquared
in interface Vector
public int maxValueIndex()
maxValueIndex
in interface Vector
public int minValueIndex()
minValueIndex
in interface Vector
public Vector assign(DoubleDoubleFunction f, double y)
public Vector assign(DoubleFunction function)
public Vector assign(Vector other, DoubleDoubleFunction function)
public String asFormatString()
asFormatString
in interface Vector