@Deprecated public abstract class Vec extends Object implements Serializable
size()
).Modifier and Type | Method and Description |
---|---|
double |
dot(Vec other)
Deprecated.
Compute the dot product of this vector with another.
|
boolean |
equals(Object o)
Deprecated.
|
double |
get(int i)
Deprecated.
Get the value from the vector at the specified position.
|
int |
hashCode()
Deprecated.
|
ImmutableVec |
immutable()
Deprecated.
Get an immutable vector with this vector's contents.
|
int |
largestDimension()
Deprecated.
Get the largest element of the vector.
|
double |
mean()
Deprecated.
Get the mean of this vector.
|
MutableVec |
mutableCopy()
Deprecated.
Get a mutable copy of this vector.
|
double |
norm()
Deprecated.
Get the L2 (Euclidean) norm of this vector.
|
int |
size()
Deprecated.
Get the dimension of this vector (the number of elements).
|
double |
sum()
Deprecated.
Get the sum of this vector.
|
String |
toString()
Deprecated.
|
public final double get(int i)
i
- The index into the vector.i
.IllegalArgumentException
- if i
is not in the range [0,size()
).public final int size()
public double norm()
public double sum()
public double mean()
Double.NaN
if the vector is
empty).public final double dot(Vec other)
other
- The other vector.other
.IllegalArgumentException
- if other.size() != this.size()
.public int largestDimension()
public ImmutableVec immutable()
public MutableVec mutableCopy()