Package elki.data
Interface SparseNumberVector.Factory<V extends SparseNumberVector>
-
- Type Parameters:
V
- Vector type number type
- All Superinterfaces:
FeatureVector.Factory<V,java.lang.Number>
,NumberVector.Factory<V>
- All Known Implementing Classes:
BitVector.Factory
,SparseByteVector.Factory
,SparseDoubleVector.Factory
,SparseFloatVector.Factory
,SparseIntegerVector.Factory
,SparseShortVector.Factory
- Enclosing interface:
- SparseNumberVector
public static interface SparseNumberVector.Factory<V extends SparseNumberVector> extends NumberVector.Factory<V>
Factory for sparse number vectors: make from a dim-value map.- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description V
newNumberVector(it.unimi.dsi.fastutil.ints.Int2DoubleOpenHashMap values, int maxdim)
Returns a new NumberVector of N for the given values.-
Methods inherited from interface elki.data.FeatureVector.Factory
getDefaultSerializer, getRestrictionClass, newFeatureVector
-
Methods inherited from interface elki.data.NumberVector.Factory
newNumberVector, newNumberVector, newNumberVector
-
-
-
-
Method Detail
-
newNumberVector
V newNumberVector(it.unimi.dsi.fastutil.ints.Int2DoubleOpenHashMap values, int maxdim)
Returns a new NumberVector of N for the given values.- Parameters:
values
- the values of the NumberVectormaxdim
- Maximum dimensionality.- Returns:
- a new NumberVector of N for the given values
-
-