Package elki.data

Interface NumberVector.Factory<V extends NumberVector>

    • 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 - Array
        adapter - Adapter
        Returns:
        a new NumberVector of N for the given values.