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
|
static BitVector |
createLength(int length) |
double |
get(int i) |
boolean |
getBit(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) |
String |
toString() |
absolute, add, add, addMultiple, addMultiple, addProduct, addProduct, addWeighted, angle, asList, clamp, clampMax, clampMin, compareTo, copy, copyTo, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divideTo, dotProduct, dotProduct, epsilonEquals, epsilonEquals, equals, fill, fillRange, hashCode, interpolate, interpolate, isUnitLengthVector, isZeroVector, iterator, join, magnitude, magnitudeSquared, maxAbsComponent, multiply, multiply, multiply, multiplyTo, negate, normalise, normaliseMaxAbsComponent, projectToPlane, scale, scale, scaleAdd, scaleToMagnitude, set, set, set, set, setValues, sub, subMultiple, subVector, toArray, toListpublic 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 static BitVector createLength(int length)
public int length()
public final boolean getBit(int i)
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.