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