Home | History | Annotate | Download | only in summary

Lines Matching refs:Product

26  * Returns the product of the available values.
38 public class Product extends AbstractStorelessUnivariateStatistic implements Serializable, WeightedEvaluation {
47 * The current Running Product.
52 * Create a Product instance
54 public Product() {
60 * Copy constructor, creates a new {@code Product} identical
63 * @param original the {@code Product} instance to copy
65 public Product(Product original) {
107 * Returns the product of the entries in the specified portion of
116 * @return the product of the values or Double.NaN if length = 0
122 double product = Double.NaN;
124 product = 1.0;
126 product *= values[i];
129 return product;
133 * <p>Returns the weighted product of the entries in the specified portion of
148 * weighted product = &prod;values[i]<sup>weights[i]</sup>
150 * that is, the weights are applied as exponents when computing the weighted product.</p>
156 * @return the product of the values or Double.NaN if length = 0
162 double product = Double.NaN;
164 product = 1.0;
166 product *= FastMath.pow(values[i], weights[i]);
169 return product;
173 * <p>Returns the weighted product of the entries in the input array.</p>
185 * weighted product = &prod;values[i]<sup>weights[i]</sup>
187 * that is, the weights are applied as exponents when computing the weighted product.</p>
191 * @return the product of the values or Double.NaN if length = 0
204 public Product copy() {
205 Product result = new Product();
214 * @param source Product to copy
215 * @param dest Product to copy to
218 public static void copy(Product source, Product dest) {