public static class BitVector.Factory extends AbstractNumberVector.Factory<BitVector> implements SparseNumberVector.Factory<BitVector>
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<? extends Number,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.
|
BitVector |
newNumberVector(TIntDoubleMap values,
int maxdim)
Returns a new NumberVector of N for the given values.
|
newNumberVector, newNumberVector
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newNumberVector, newNumberVector
public <A> BitVector newFeatureVector(A array, ArrayAdapter<? extends Number,A> adapter)
FeatureVector.Factory
newFeatureVector
in interface FeatureVector.Factory<BitVector,Number>
A
- Array typearray
- the values of the featureVectoradapter
- adapter classpublic <A> BitVector newNumberVector(A array, NumberArrayAdapter<?,? super A> adapter)
NumberVector.Factory
newNumberVector
in interface NumberVector.Factory<BitVector>
A
- Array typearray
- Arrayadapter
- Adapterpublic BitVector newNumberVector(TIntDoubleMap values, int maxdim)
SparseNumberVector.Factory
newNumberVector
in interface SparseNumberVector.Factory<BitVector>
values
- the values of the NumberVectormaxdim
- Maximum dimensionality.public ByteBufferSerializer<BitVector> getDefaultSerializer()
FeatureVector.Factory
null
when no serializer is available.getDefaultSerializer
in interface FeatureVector.Factory<BitVector,Number>
public Class<? super BitVector> getRestrictionClass()
FeatureVector.Factory
getRestrictionClass
in interface FeatureVector.Factory<BitVector,Number>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.