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