Inheritance diagram for DoubleVector:
Collaboration diagram for DoubleVector:Public Methods | |
| DoubleVector () | |
| DoubleVector (int dimension, int initialMapSize) | |
| int | getDimension () |
| Double | get (int position) |
| Collection< Integer > | getNonZeroIndices () |
| double | getNativeDistanceTo (IVector< Double > other) |
| double | getDistanceTo (IVector< Double > other, IDistanceCalculator< Double > calculator) |
| INumberVector< Double > | add (INumberVector< Double > other) |
| INumberVector< Double > | subtract (INumberVector< Double > other) |
| INumberVector< Double > | multiply (final Double value) |
| INumberVector< Double > | multiply (final double value) |
| double | length () |
| Double | multiply (INumberVector< Double > other) |
| INumberVector< Double > | absolute () |
| Map< Integer, Double > | getNonZeroElements () |
| long | getId () |
| void | setId (long id) |
| void | setDimension (int dimension) |
| void | set (int index, Double value) |
| void | optimizeSize () |
| Double[] | toArray () |
| DoubleVector | getEmptyVector () |
| IEditableNumberVector< Double > | getEmptyEditableVector () |
| void | applyOnNonZeroElements (final IOperation< Double > operation) |
| void | applyOnNonZeroElements (final IEditableNumberVector< Double > other, final IOperation< Double > operation) |
| Class< Double > | getDataClass () |
| double | getAsDouble (int index) |
Protected Methods | |
| DoubleVector | newDoubleVector (int dimension, int initialSize) |
| DoubleVector | ( | ) |
| DoubleVector | ( | int | dimension, |
| int | initialMapSize | ||
| ) |
| INumberVector<Double> absolute | ( | ) |
| INumberVector<Double> add | ( | INumberVector< Double > | other | ) |
| void applyOnNonZeroElements | ( | final IOperation< Double > | operation | ) |
| void applyOnNonZeroElements | ( | final IEditableNumberVector< Double > | other, |
| final IOperation< Double > | operation | ||
| ) |
| Double get | ( | int | position | ) |
| double getAsDouble | ( | int | index | ) |
| Class<Double> getDataClass | ( | ) |
| int getDimension | ( | ) |
Reimplemented in GeoVector.
| double getDistanceTo | ( | IVector< Double > | other, |
| IDistanceCalculator< Double > | calculator | ||
| ) |
| IEditableNumberVector<Double> getEmptyEditableVector | ( | ) |
Reimplemented in LabeledDoubleVector, and GeoVector.
| DoubleVector getEmptyVector | ( | ) |
Reimplemented in LabeledDoubleVector, and GeoVector.
| long getId | ( | ) |
| double getNativeDistanceTo | ( | IVector< Double > | other | ) |
Reimplemented in GeoVector.
| Map<Integer, Double> getNonZeroElements | ( | ) |
| Collection<Integer> getNonZeroIndices | ( | ) |
| double length | ( | ) |
| INumberVector<Double> multiply | ( | final Double | value | ) |
| Double multiply | ( | INumberVector< Double > | other | ) |
| INumberVector<Double> multiply | ( | final double | value | ) |
| DoubleVector newDoubleVector | ( | int | dimension, |
| int | initialSize | ||
| ) | [protected] |
Reimplemented in LabeledDoubleVector, and GeoVector.
| void optimizeSize | ( | ) |
| void set | ( | int | index, |
| Double | value | ||
| ) |
| void setDimension | ( | int | dimension | ) |
| void setId | ( | long | id | ) |
| INumberVector<Double> subtract | ( | INumberVector< Double > | other | ) |
| Double [] toArray | ( | ) |