
public static class SparseByteVector.Factory extends AbstractNumberVector.Factory<SparseByteVector,Byte> implements SparseNumberVector.Factory<SparseByteVector,Byte>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | SparseByteVector.Factory.ParameterizerParameterization class. | 
| Constructor and Description | 
|---|
| SparseByteVector.Factory() | 
| Modifier and Type | Method and Description | 
|---|---|
| ByteBufferSerializer<SparseByteVector> | getDefaultSerializer()Get the default serializer for this type. | 
| Class<? super SparseByteVector> | getRestrictionClass()Get the objects type restriction. | 
| <A> SparseByteVector | newFeatureVector(A array,
                ArrayAdapter<Byte,A> adapter)Returns a new FeatureVector of V for the given values. | 
| <A> SparseByteVector | newNumberVector(A array,
               NumberArrayAdapter<?,? super A> adapter)Instantiate from any number-array like object. | 
| SparseByteVector | newNumberVector(gnu.trove.map.TIntDoubleMap values,
               int maxdim)Returns a new NumberVector of N for the given values. | 
newNumberVectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewNumberVectorpublic <A> SparseByteVector newFeatureVector(A array, ArrayAdapter<Byte,A> adapter)
FeatureVector.FactorynewFeatureVector in interface FeatureVector.Factory<SparseByteVector,Byte>A - Array typearray - the values of the featureVectoradapter - adapter classpublic <A> SparseByteVector newNumberVector(A array, NumberArrayAdapter<?,? super A> adapter)
NumberVector.FactorynewNumberVector in interface NumberVector.Factory<SparseByteVector,Byte>A - Array typearray - Arrayadapter - Adapterpublic SparseByteVector newNumberVector(gnu.trove.map.TIntDoubleMap values, int maxdim)
SparseNumberVector.FactorynewNumberVector in interface SparseNumberVector.Factory<SparseByteVector,Byte>values - the values of the NumberVectormaxdim - Maximum dimensionality.public ByteBufferSerializer<SparseByteVector> getDefaultSerializer()
FeatureVector.Factorynull when no serializer is available.getDefaultSerializer in interface FeatureVector.Factory<SparseByteVector,Byte>public Class<? super SparseByteVector> getRestrictionClass()
FeatureVector.FactorygetRestrictionClass in interface FeatureVector.Factory<SparseByteVector,Byte>