Module math

Interface NumberVector.Factory<V extends NumberVector<? extends N>,N extends Number>

Type Parameters:
V - Vector type
N - 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 Details

    • newNumberVector

      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

      <A> V newNumberVector(A array, NumberArrayAdapter<?,? super A> adapter)
      Instantiate from any number-array like object.
      Type Parameters:
      A - Array type
      Parameters:
      array - Array
      adapter - Adapter
      Returns:
      a new NumberVector of N for the given values.