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 Sum
Sum.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 Sum
Sum.create()
Creates a new instance with an initial value of zero.static Sum
Sum.of
(double a) Creates an instance initialized to the given value.static Sum
Sum.of
(double... values) Creates an instance containing the sum of the given values.static Sum
Sum.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