public static class SparseShortVector.Factory extends java.lang.Object implements SparseNumberVector.Factory<SparseShortVector>
Modifier and Type | Class and Description |
---|---|
static class |
SparseShortVector.Factory.Parameterizer
Parameterization class.
|
Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
ByteBufferSerializer<SparseShortVector> |
getDefaultSerializer()
Get the default serializer for this type.
|
java.lang.Class<? super SparseShortVector> |
getRestrictionClass()
Get the objects type restriction.
|
<A> SparseShortVector |
newFeatureVector(A array,
ArrayAdapter<? extends java.lang.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(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, wait
newNumberVector, newNumberVector
public <A> SparseShortVector newFeatureVector(A array, ArrayAdapter<? extends java.lang.Number,A> adapter)
FeatureVector.Factory
newFeatureVector
in interface FeatureVector.Factory<SparseShortVector,java.lang.Number>
A
- Array typearray
- the values of the featureVectoradapter
- adapter classpublic <A> SparseShortVector newNumberVector(A array, NumberArrayAdapter<?,? super A> adapter)
NumberVector.Factory
newNumberVector
in interface NumberVector.Factory<SparseShortVector>
A
- Array typearray
- Arrayadapter
- Adapterpublic SparseShortVector newNumberVector(it.unimi.dsi.fastutil.ints.Int2DoubleOpenHashMap values, int maxdim)
SparseNumberVector.Factory
newNumberVector
in interface SparseNumberVector.Factory<SparseShortVector>
values
- the values of the NumberVectormaxdim
- Maximum dimensionality.public ByteBufferSerializer<SparseShortVector> getDefaultSerializer()
FeatureVector.Factory
null
when no serializer is available.getDefaultSerializer
in interface FeatureVector.Factory<SparseShortVector,java.lang.Number>
public java.lang.Class<? super SparseShortVector> getRestrictionClass()
FeatureVector.Factory
getRestrictionClass
in interface FeatureVector.Factory<SparseShortVector,java.lang.Number>
Copyright © 2019 ELKI Development Team. License information.