Class LinearCombinations.BaseLinearCombination

    • Constructor Detail

      • BaseLinearCombination

        public BaseLinearCombination()
    • Method Detail

      • value

        public double value​(double[] a,
                            double[] b)
        Compute the sum of the products of two sequences of factors.
        Specified by:
        value in interface LinearCombination.ND
        Parameters:
        a - Factors.
        b - Factors.
        Returns:
        \( \sum_i a_i b_i \).
      • computeValue

        protected abstract double computeValue​(double[] a,
                                               double[] b)
        Compute the sum of the products of two sequences of factors with high accuracy. The input arrays will have a length of at least 2; the lengths will be the same.
        Parameters:
        a - Factors.
        b - Factors.
        Returns:
        \( \sum_i a_i b_i \).