~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/StatisticalSummary.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:
19
19
/**
20
20
 *  Reporting interface for basic univariate statistics.
21
21
 *
22
 
  * @version $Revision: 670469 $ $Date: 2008-06-23 04:01:38 -0400 (Mon, 23 Jun 2008) $
 
22
  * @version $Revision: 811786 $ $Date: 2009-09-06 05:36:08 -0400 (Sun, 06 Sep 2009) $
23
23
 */
24
24
public interface StatisticalSummary {
25
 
    /** 
 
25
 
 
26
    /**
26
27
     * Returns the <a href="http://www.xycoon.com/arithmetic_mean.htm">
27
 
     * arithmetic mean </a> of the available values 
 
28
     * arithmetic mean </a> of the available values
28
29
     * @return The mean or Double.NaN if no values have been added.
29
30
     */
30
 
    public abstract double getMean();
31
 
    /** 
 
31
    double getMean();
 
32
    /**
32
33
     * Returns the variance of the available values.
33
 
     * @return The variance, Double.NaN if no values have been added 
34
 
     * or 0.0 for a single value set.  
 
34
     * @return The variance, Double.NaN if no values have been added
 
35
     * or 0.0 for a single value set.
35
36
     */
36
 
    public abstract double getVariance();
37
 
    /** 
 
37
    double getVariance();
 
38
    /**
38
39
     * Returns the standard deviation of the available values.
39
 
     * @return The standard deviation, Double.NaN if no values have been added 
40
 
     * or 0.0 for a single value set. 
 
40
     * @return The standard deviation, Double.NaN if no values have been added
 
41
     * or 0.0 for a single value set.
41
42
     */
42
 
    public abstract double getStandardDeviation();
43
 
    /** 
 
43
    double getStandardDeviation();
 
44
    /**
44
45
     * Returns the maximum of the available values
45
46
     * @return The max or Double.NaN if no values have been added.
46
47
     */
47
 
    public abstract double getMax();
48
 
    /** 
 
48
    double getMax();
 
49
    /**
49
50
    * Returns the minimum of the available values
50
51
    * @return The min or Double.NaN if no values have been added.
51
52
    */
52
 
    public abstract double getMin();
53
 
    /** 
 
53
    double getMin();
 
54
    /**
54
55
     * Returns the number of available values
55
56
     * @return The number of available values
56
57
     */
57
 
    public abstract long getN();
 
58
    long getN();
58
59
    /**
59
60
     * Returns the sum of the values that have been added to Univariate.
60
61
     * @return The sum or Double.NaN if no values have been added
61
62
     */
62
 
    public abstract double getSum();
63
 
}
 
 
b'\\ No newline at end of file'
 
63
    double getSum();
 
64
 
 
65
}