|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.microanalysis.Utility.DescriptiveStatistics
public class DescriptiveStatistics
A simple class to calculate four basic descriptive statistics - average, variance, skewness and kurtosis. Create an instance of the class, then use addPoint() to record data points. At any time you may call one of the statistic functions to return the current value of the statistic.
Copyright: Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain
Company: National Institute of Standards and Technology
| Constructor Summary | |
|---|---|
DescriptiveStatistics()
Constructs an empty DescriptiveStatistics object |
|
DescriptiveStatistics(DescriptiveStatistics ds1,
DescriptiveStatistics ds2)
Form a DescriptiveStatistics object which combines the statistics from two source DescriptiveStatistics objects into one. |
|
| Method Summary | |
|---|---|
void |
add(double x)
Add a number to the accumulated statistics. |
double |
average()
The average value of the values added to this object using the add method. |
double |
kurtosis()
kurtosis - (E[(x-mu)^4]/sigma^4) - 3 |
double |
maximum()
maximum - The maximum value in the list |
double |
minimum()
minimum - The minimum value in the list |
double |
skewness()
skewness - E[(x-mu)^3]/sigma^3 |
double |
standardDeviation()
standardDeviation - The square root of the variance. |
double |
standardErrorOfKurtosis()
standardErrorOfKurtosis - A number against which the kurtosis can be compared to determine whether the distribution has a significant kurtosis. |
double |
standardErrorOfSkewness()
standardErrorOfSkewness - A number against which to compare the skewness to determine the statistical significance. |
java.lang.String |
toString()
|
double |
variance()
variance - sigma^2=E[(x-mu)^2] |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DescriptiveStatistics(DescriptiveStatistics ds1,
DescriptiveStatistics ds2)
ds1 - ds2 - public DescriptiveStatistics()
| Method Detail |
|---|
public void add(double x)
x - public double average()
public double variance()
public double standardDeviation()
public double skewness()
public double standardErrorOfSkewness()
public double kurtosis()
public double standardErrorOfKurtosis()
public double minimum()
public double maximum()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||