public static class FloatVector.Factory extends AbstractNumberVector.Factory<FloatVector,Float>
Modifier and Type | Class and Description |
---|---|
static class |
FloatVector.Factory.Parameterizer
Parameterization class.
|
Constructor and Description |
---|
FloatVector.Factory() |
Modifier and Type | Method and Description |
---|---|
ByteBufferSerializer<FloatVector> |
getDefaultSerializer()
Get the default serializer for this type.
|
Class<? super FloatVector> |
getRestrictionClass()
Get the objects type restriction.
|
<A> FloatVector |
newFeatureVector(A array,
ArrayAdapter<Float,A> adapter)
Returns a new FeatureVector of V for the given values.
|
<A> FloatVector |
newNumberVector(A array,
NumberArrayAdapter<?,? super A> adapter)
Instantiate from any number-array like object.
|
newNumberVector
public <A> FloatVector newFeatureVector(A array, ArrayAdapter<Float,A> adapter)
FeatureVector.Factory
A
- Array typearray
- the values of the featureVectoradapter
- adapter classpublic <A> FloatVector newNumberVector(A array, NumberArrayAdapter<?,? super A> adapter)
NumberVector.Factory
A
- Array typearray
- Arrayadapter
- Adapterpublic ByteBufferSerializer<FloatVector> getDefaultSerializer()
FeatureVector.Factory
null
when no serializer is available.public Class<? super FloatVector> getRestrictionClass()
FeatureVector.Factory