| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
| Constructor and Description |
|---|
VectorSetUsingBuffer(int numVectors,
boolean direct)
Instantiate an empty set with the specified initial capacity.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(float x,
float y,
float z)
Add the specified value to this set, if it's not already present.
|
void |
add(Vector3f vector)
Add the value of the specified Vector3f to this set, if it's not already
present.
|
void |
addAll(java.lang.Iterable<Vector3f> vectors)
Add the specified values to this set, to the extent that they're not
already present.
|
void |
clear()
Reset this set to its initial (empty, flipped, rewound) state without
altering its capacity.
|
static void |
clearStats()
Reset the hashing statistics.
|
boolean |
contains(float x,
float y,
float z)
Test whether this set contains the specified value.
|
boolean |
contains(Vector3f vector)
Test whether this set contains the value of the specified Vector3f.
|
Matrix3f |
covariance(Matrix3f storeResult)
Determine the sample covariance of the values in this set.
|
static void |
dumpStats(java.lang.String tag)
Print the hashing statistics.
|
Vector3f |
maxAbs(Vector3f storeResult)
Find the maximum absolute coordinate for each axis among the Vector3f
values in this set.
|
float |
maxLength()
Find the magnitude of the longest vector in this set.
|
void |
maxMin(Vector3f storeMaxima,
Vector3f storeMinima)
Find the maximum and minimum coordinates for each axis among the values
in this set.
|
Vector3f |
mean(Vector3f storeResult)
Determine the sample mean for each axis among the values in this set.
|
int |
numVectors()
Determine the number of values in this set.
|
java.nio.FloatBuffer |
toBuffer()
Access a Buffer containing all values in this set.
|
float[] |
toFloatArray()
Create an array of floats containing all values in this set.
|
java.lang.String |
toString()
Represent this set as a String.
|
Vector3f[] |
toVectorArray()
Create an array of vectors containing all values in this set.
|
public static final java.util.logging.Logger logger
public VectorSetUsingBuffer(int numVectors,
boolean direct)
numVectors - the number of vectors the set must hold without needing
enlargement (>0)direct - true→allocate direct buffers, false→allocate
indirect bufferspublic static void clearStats()
public static void dumpStats(java.lang.String tag)
tag - (not null)public void add(float x,
float y,
float z)
public void add(Vector3f vector)
public void addAll(java.lang.Iterable<Vector3f> vectors)
public void clear()
public boolean contains(float x,
float y,
float z)
public boolean contains(Vector3f vector)
public Matrix3f covariance(Matrix3f storeResult)
covariance in interface VectorSetstoreResult - storage for the result (modified if not null)public Vector3f maxAbs(Vector3f storeResult)
public float maxLength()
public void maxMin(Vector3f storeMaxima, Vector3f storeMinima)
public Vector3f mean(Vector3f storeResult)
public int numVectors()
numVectors in interface VectorSetpublic java.nio.FloatBuffer toBuffer()
public float[] toFloatArray()
toFloatArray in interface VectorSetpublic Vector3f[] toVectorArray()
toVectorArray in interface VectorSetpublic java.lang.String toString()
toString in class java.lang.Object