
public class OneDimensionalDoubleVector extends AbstractNumberVector<Double>
| Modifier and Type | Class and Description |
|---|---|
static class |
OneDimensionalDoubleVector.Factory
Factory class.
|
| Modifier and Type | Field and Description |
|---|---|
static OneDimensionalDoubleVector.Factory |
STATIC
Static factory instance.
|
(package private) double |
val
The actual data value.
|
ATTRIBUTE_SEPARATOR| Constructor and Description |
|---|
OneDimensionalDoubleVector(double val)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
doubleValue(int dimension)
Returns the value in the specified dimension as double.
|
Vector |
getColumnVector()
Returns a Vector representing in one column and
getDimensionality() rows the values of this NumberVector of V. |
int |
getDimensionality()
The dimensionality of the vector space where of this FeatureVector of V is
an element.
|
Double |
getValue(int dimension)
Deprecated.
|
long |
longValue(int dimension)
Returns the value in the specified dimension as long.
|
byteValue, floatValue, getMax, getMin, intValue, shortValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic static final OneDimensionalDoubleVector.Factory STATIC
double val
public OneDimensionalDoubleVector(double val)
val - Valuepublic int getDimensionality()
FeatureVectorpublic double doubleValue(int dimension)
NumberVectorgetValue(dim).doubleValue(), but usually this is much more
efficient due to boxing/unboxing cost.dimension - the desired dimension, where 0 ≤ dimension <
this.getDimensionality()public long longValue(int dimension)
NumberVectorgetValue(dim).longValue(), but usually this is much more efficient
due to boxing/unboxing cost.dimension - the desired dimension, where 0 ≤ dimension <
this.getDimensionality()@Deprecated public Double getValue(int dimension)
FeatureVectordimension - the desired dimension, where 0 ≤ dimension ≤
this.getDimensionality()-1public Vector getColumnVector()
NumberVectorgetDimensionality() rows the values of this NumberVector of V.getDimensionality() rows the values of this
NumberVector of V