Package elki.data
Interface NumberVector.Factory<V extends NumberVector>
-
- Type Parameters:
V
- Vector type
- All Superinterfaces:
FeatureVector.Factory<V,java.lang.Number>
- All Known Subinterfaces:
SparseNumberVector.Factory<V>
- All Known Implementing Classes:
BitVector.Factory
,ByteVector.Factory
,DoubleVector.Factory
,FloatVector.Factory
,IntegerVector.Factory
,OneDimensionalDoubleVector.Factory
,ShortVector.Factory
,SparseByteVector.Factory
,SparseDoubleVector.Factory
,SparseFloatVector.Factory
,SparseIntegerVector.Factory
,SparseShortVector.Factory
- Enclosing interface:
- NumberVector
public static interface NumberVector.Factory<V extends NumberVector> extends FeatureVector.Factory<V,java.lang.Number>
Factory API for this feature vector.- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default V
newNumberVector(double[] values)
Returns a new NumberVector of N for the given values.<A> V
newNumberVector(A array, NumberArrayAdapter<?,? super A> adapter)
Instantiate from any number-array like object.default V
newNumberVector(NumberVector values)
Returns a new NumberVector of N for the given values.-
Methods inherited from interface elki.data.FeatureVector.Factory
getDefaultSerializer, getRestrictionClass, newFeatureVector
-
-
-
-
Method Detail
-
newNumberVector
default V newNumberVector(double[] values)
Returns a new NumberVector of N for the given values.- Parameters:
values
- the values of the NumberVector- Returns:
- a new NumberVector of N for the given values
-
newNumberVector
default V newNumberVector(NumberVector values)
Returns a new NumberVector of N for the given values.- Parameters:
values
- Existing number vector- Returns:
- a new NumberVector of N for the given values
-
newNumberVector
<A> V newNumberVector(A array, NumberArrayAdapter<?,? super A> adapter)
Instantiate from any number-array like object.- Type Parameters:
A
- Array type- Parameters:
array
- Arrayadapter
- Adapter- Returns:
- a new NumberVector of N for the given values.
-
-