public static class SparseByteVector.Factory extends java.lang.Object implements SparseNumberVector.Factory<SparseByteVector>
| Modifier and Type | Class and Description |
|---|---|
static class |
SparseByteVector.Factory.Parameterizer
Parameterization class.
|
| Constructor and Description |
|---|
Factory() |
| Modifier and Type | Method and Description |
|---|---|
ByteBufferSerializer<SparseByteVector> |
getDefaultSerializer()
Get the default serializer for this type.
|
java.lang.Class<? super SparseByteVector> |
getRestrictionClass()
Get the objects type restriction.
|
<A> SparseByteVector |
newFeatureVector(A array,
ArrayAdapter<? extends java.lang.Number,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(it.unimi.dsi.fastutil.ints.Int2DoubleOpenHashMap values,
int maxdim)
Returns a new NumberVector of N for the given values.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewNumberVector, newNumberVectorpublic <A> SparseByteVector newFeatureVector(A array, ArrayAdapter<? extends java.lang.Number,A> adapter)
FeatureVector.FactorynewFeatureVector in interface FeatureVector.Factory<SparseByteVector,java.lang.Number>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>A - Array typearray - Arrayadapter - Adapterpublic SparseByteVector newNumberVector(it.unimi.dsi.fastutil.ints.Int2DoubleOpenHashMap values, int maxdim)
SparseNumberVector.FactorynewNumberVector in interface SparseNumberVector.Factory<SparseByteVector>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,java.lang.Number>public java.lang.Class<? super SparseByteVector> getRestrictionClass()
FeatureVector.FactorygetRestrictionClass in interface FeatureVector.Factory<SparseByteVector,java.lang.Number>Copyright © 2019 ELKI Development Team. License information.