Class VectorSequence
java.lang.Object
io.nosqlbench.virtdata.lib.vectors.primitive.VectorSequence
- All Implemented Interfaces:
LongFunction<double[]>
- Direct Known Subclasses:
DoubleArrayCache,GoldenAngleDoubleVectors
A VectorSequence is a sequence of vectors which are a deterministic
map between a set of ordinal values and vector values. Ideally, they
are computed with closed-form functions. If not, they should
be pre-computed in cashed.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongabstract longdoubleThis should return the computed minimum vector angle in radiansMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.LongFunction
apply
-
Field Details
-
cardinality
protected final long cardinality
-
-
Constructor Details
-
VectorSequence
public VectorSequence(long cardinality)
-
-
Method Details
-
getDimensions
public abstract long getDimensions()- Returns:
- the number of components per vector produced.
-
getCardinality
public long getCardinality()- Returns:
- the number of unique vectors produced.
-
getMinimumVectorAngle
public double getMinimumVectorAngle()This should return the computed minimum vector angle in radians- Returns:
- the minimum vector angle in radians between adjacent vectors by ordinal value
-