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