public final class BitVector extends AVector
| Modifier and Type | Field and Description |
|---|---|
static double |
BIT_OFF |
static double |
BIT_ON |
static double |
BIT_THRESHOLD |
| Constructor and Description |
|---|
BitVector(AVector source) |
BitVector(BitVector source) |
BitVector(int length) |
| Modifier and Type | Method and Description |
|---|---|
AVector |
clone()
Clones the vector, creating a new copy of all data.
|
void |
copyTo(double[] data,
int offset)
Copies a the contents of a vector to a double array at the specified offset
|
double |
get(int i) |
boolean |
isFullyMutable()
Returns true if this vector is fully mutable, i.e.
|
boolean |
isMutable()
Returns true if this vector is mutable.
|
boolean |
isReference()
Returns true if this vector is of a type that references other vectors / data.
|
int |
length() |
static BitVector |
of(double... values) |
void |
set(int i,
double value) |
absolute, add, add, addMultiple, addMultiple, addProduct, addProduct, addWeighted, angle, asList, clamp, clampMax, clampMin, compareTo, copy, copyTo, distance, distanceL1, distanceLinf, distanceSquared, dotProduct, dotProduct, epsilonEquals, epsilonEquals, equals, fill, fillRange, hashCode, interpolate, interpolate, isUnitLengthVector, isZeroVector, iterator, join, magnitude, magnitudeSquared, multiply, multiply, negate, normalise, projectToPlane, scale, scaleAdd, set, set, set, setValues, sub, subMultiple, subVector, toArray, toList, toStringpublic static final double BIT_ON
public static final double BIT_OFF
public static final double BIT_THRESHOLD
public BitVector(int length)
public BitVector(AVector source)
public BitVector(BitVector source)
public int length()
public double get(int i)
public boolean isMutable()
AVectorpublic void copyTo(double[] data,
int offset)
AVectorpublic boolean isFullyMutable()
AVectorisFullyMutable in class AVectorpublic boolean isReference()
AVectorisReference in class AVectorpublic void set(int i,
double value)
public AVector clone()
AVectorpublic static BitVector of(double... values)
Copyright © 2012. All Rights Reserved.