Package elki.data
Interface FeatureVector.Factory<V extends FeatureVector<? extends D>,D>
-
- Type Parameters:
V- Vector type
- All Known Subinterfaces:
NumberVector.Factory<V>,SparseNumberVector.Factory<V>
- All Known Implementing Classes:
BitVector.Factory,ByteVector.Factory,DoubleVector.Factory,FloatVector.Factory,IntegerVector.Factory,OneDimensionalDoubleVector.Factory,ShortVector.Factory,SimpleGaussianContinuousUncertainObject.Factory,SparseByteVector.Factory,SparseDoubleVector.Factory,SparseFloatVector.Factory,SparseIntegerVector.Factory,SparseShortVector.Factory,UniformContinuousUncertainObject.Factory,UnweightedDiscreteUncertainObject.Factory,WeightedDiscreteUncertainObject.Factory
- Enclosing interface:
- FeatureVector<D>
public static interface FeatureVector.Factory<V extends FeatureVector<? extends D>,D>Factory API for this feature vector.- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBufferSerializer<V>getDefaultSerializer()Get the default serializer for this type.java.lang.Class<? super V>getRestrictionClass()Get the objects type restriction.<A> VnewFeatureVector(A array, ArrayAdapter<? extends D,A> adapter)Returns a new FeatureVector of V for the given values.
-
-
-
Method Detail
-
newFeatureVector
<A> V newFeatureVector(A array, ArrayAdapter<? extends D,A> adapter)
Returns a new FeatureVector of V for the given values.- Type Parameters:
A- Array type- Parameters:
array- the values of the featureVectoradapter- adapter class- Returns:
- a new FeatureVector of V for the given values
-
getDefaultSerializer
ByteBufferSerializer<V> getDefaultSerializer()
Get the default serializer for this type.Note, this may be
nullwhen no serializer is available.- Returns:
- Serializer
-
getRestrictionClass
java.lang.Class<? super V> getRestrictionClass()
Get the objects type restriction.- Returns:
- Restriction class
-
-