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