
public static class SparseShortVector.Factory extends AbstractNumberVector.Factory<SparseShortVector> implements SparseNumberVector.Factory<SparseShortVector>
| Modifier and Type | Class and Description |
|---|---|
static class |
SparseShortVector.Factory.Parameterizer
Parameterization class.
|
| Constructor and Description |
|---|
SparseShortVector.Factory() |
| Modifier and Type | Method and Description |
|---|---|
ByteBufferSerializer<SparseShortVector> |
getDefaultSerializer()
Get the default serializer for this type.
|
Class<? super SparseShortVector> |
getRestrictionClass()
Get the objects type restriction.
|
<A> SparseShortVector |
newFeatureVector(A array,
ArrayAdapter<? extends Number,A> adapter)
Returns a new FeatureVector of V for the given values.
|
<A> SparseShortVector |
newNumberVector(A array,
NumberArrayAdapter<?,? super A> adapter)
Instantiate from any number-array like object.
|
SparseShortVector |
newNumberVector(TIntDoubleMap values,
int maxdim)
Returns a new NumberVector of N for the given values.
|
newNumberVector, newNumberVectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewNumberVector, newNumberVectorpublic <A> SparseShortVector newFeatureVector(A array, ArrayAdapter<? extends Number,A> adapter)
FeatureVector.FactorynewFeatureVector in interface FeatureVector.Factory<SparseShortVector,Number>A - Array typearray - the values of the featureVectoradapter - adapter classpublic <A> SparseShortVector newNumberVector(A array, NumberArrayAdapter<?,? super A> adapter)
NumberVector.FactorynewNumberVector in interface NumberVector.Factory<SparseShortVector>A - Array typearray - Arrayadapter - Adapterpublic SparseShortVector newNumberVector(TIntDoubleMap values, int maxdim)
SparseNumberVector.FactorynewNumberVector in interface SparseNumberVector.Factory<SparseShortVector>values - the values of the NumberVectormaxdim - Maximum dimensionality.public ByteBufferSerializer<SparseShortVector> getDefaultSerializer()
FeatureVector.Factorynull when no serializer is available.getDefaultSerializer in interface FeatureVector.Factory<SparseShortVector,Number>public Class<? super SparseShortVector> getRestrictionClass()
FeatureVector.FactorygetRestrictionClass in interface FeatureVector.Factory<SparseShortVector,Number>Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.