Module math
Package de.lmu.ifi.dbs.elki.data
Interface NumberVector.Factory<V extends NumberVector<? extends N>,N extends Number>
- Type Parameters:
V
- Vector typeN
- Data type of vector
- All Superinterfaces:
FeatureVector.Factory<V,
,N> Parameterizable
- Enclosing interface:
- NumberVector<N extends Number>
public static interface NumberVector.Factory<V extends NumberVector<? extends N>,N extends Number>
extends FeatureVector.Factory<V,N>
Factory API for this feature vector.
- Author:
- Erich Schubert
-
Method Summary
Modifier and TypeMethodDescriptionnewNumberVector
(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.Methods inherited from interface de.lmu.ifi.dbs.elki.data.FeatureVector.Factory
getDefaultSerializer, getRestrictionClass, newFeatureVector
-
Method Details
-
newNumberVector
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
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.
-