Uses of Class
org.apache.commons.numbers.core.Sum
Packages that use Sum
-
Uses of Sum in org.apache.commons.numbers.core
Methods in org.apache.commons.numbers.core that return SumModifier and TypeMethodDescriptionSum.add(double t) Adds a single term to this sum.Sum.add(double... terms) Adds values from the given array to the sum.private SumSum.add(double s, double c) Adds the sum and compensation to this sum.Adds another sum to this sum.Sum.addProduct(double a, double b) Adds the high-accuracy product \( a b \) to this sum.Sum.addProducts(double[] a, double[] b) Adds \( \sum_i a_i b_i \) to this sum.static SumSum.create()Creates a new instance with an initial value of zero.static SumSum.of(double a) Creates an instance initialized to the given value.static SumSum.of(double... values) Creates an instance containing the sum of the given values.static SumSum.ofProducts(double[] a, double[] b) Creates a new instance containing \( \sum_i a_i b_i \).Subtracts another sum from this sum.Methods in org.apache.commons.numbers.core with parameters of type Sum