@Deprecated @Immutable public final class ImmutableVec extends Vec
Vec. This vector cannot be modified (by anyone) and is thread-safe. You can
create one using create(double[]) or immutable().| Modifier and Type | Method and Description |
|---|---|
static ImmutableVec |
create(double[] data)
Deprecated.
Create a new vector from data in an array.
|
ImmutableVec |
immutable()
Deprecated.
Get an immutable vector with this vector's contents.
|
double |
norm()
Deprecated.
Get the L2 (Euclidean) norm of this vector.
|
double |
sum()
Deprecated.
Get the sum of this vector.
|
dot, equals, get, hashCode, largestDimension, mean, mutableCopy, size, toStringpublic static ImmutableVec create(double[] data)
data - The data array.data.public ImmutableVec immutable()
Vecpublic double sum()
Vec