~ubuntu-branches/ubuntu/quantal/commons-math/quantal

« back to all changes in this revision

Viewing changes to src/main/java/org/apache/commons/math/stat/descriptive/StorelessUnivariateStatistic.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2010-04-05 23:33:02 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100405233302-gpqlceked76nw28a
Tags: 2.1-1
* New upstream release.
* Bump Standards-Version to 3.8.4: no changes needed
* Bump debhelper to >= 7
* Switch to 3.0 (quilt) source format:
  - Remove B-D on quilt
  - Add d/source/format
  - Remove d/README.source

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
package org.apache.commons.math.stat.descriptive;
18
18
 
19
19
/**
20
 
 * Extends the definition of {@link UnivariateStatistic} with 
 
20
 * Extends the definition of {@link UnivariateStatistic} with
21
21
 * {@link #increment} and {@link #incrementAll(double[])} methods for adding
22
 
 * values and updating internal state.  
 
22
 * values and updating internal state.
23
23
 * <p>
24
24
 * This interface is designed to be used for calculating statistics that can be
25
25
 * computed in one pass through the data without storing the full array of
26
26
 * sample values.</p>
27
27
 *
28
 
 * @version $Revision: 720030 $ $Date: 2008-11-23 13:47:50 -0500 (Sun, 23 Nov 2008) $
 
28
 * @version $Revision: 811685 $ $Date: 2009-09-05 13:36:48 -0400 (Sat, 05 Sep 2009) $
29
29
 */
30
30
public interface StorelessUnivariateStatistic extends UnivariateStatistic {
31
31
 
34
34
     * @param d  the new value.
35
35
     */
36
36
    void increment(double d);
37
 
    
 
37
 
38
38
    /**
39
39
     * Updates the internal state of the statistic to reflect addition of
40
40
     * all values in the values array.  Does not clear the statistic first --
41
41
     * i.e., the values are added <strong>incrementally</strong> to the dataset.
42
 
     * 
 
42
     *
43
43
     * @param values  array holding the new values to add
44
44
     * @throws IllegalArgumentException if the array is null
45
45
     */
46
46
    void incrementAll(double[] values);
47
 
    
 
47
 
48
48
    /**
49
49
     * Updates the internal state of the statistic to reflect addition of
50
50
     * the values in the designated portion of the values array.  Does not
51
 
     * clear the statistic first -- i.e., the values are added 
 
51
     * clear the statistic first -- i.e., the values are added
52
52
     * <strong>incrementally</strong> to the dataset.
53
 
     * 
 
53
     *
54
54
     * @param values  array holding the new values to add
55
55
     * @param start  the array index of the first value to add
56
56
     * @param length  the number of elements to add
75
75
     * Clears the internal state of the Statistic
76
76
     */
77
77
    void clear();
78
 
    
 
78
 
79
79
    /**
80
80
     * Returns a copy of the statistic with the same internal state.
81
 
     * 
 
81
     *
82
82
     * @return a copy of the statistic
83
83
     */
84
84
    StorelessUnivariateStatistic copy();
85
85
 
86
 
}
 
 
b'\\ No newline at end of file'
 
86
}