|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectpamMaths.STD
public class STD
Calculate the mean and standard deviation of an double array.
| Field Summary | |
|---|---|
private double[] |
data
|
private double |
mean
|
private double |
std
|
| Constructor Summary | |
|---|---|
STD()
|
|
| Method Summary | |
|---|---|
private void |
calculate(double[] data)
|
double[] |
getData()
Get the data previously set with calls to STD and Mean funcs |
double |
getMean()
Get the mean value calculated in a previous call to getSTD(double[] data) or getMean(double[] data) |
double |
getMean(double[] data)
Calculate the mean and standard deviation using new data |
double |
getSkew()
Get the skew as per page 612 or numerical recipes. |
double |
getSTD()
Get the standard deviation calculated in a previous call to getSTD(double[] data) or getMean(double[] data) |
double |
getSTD(double[] data)
Calculate the mean and standard deviation using new data |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private double[] data
private double mean
private double std
| Constructor Detail |
|---|
public STD()
| Method Detail |
|---|
public double getSTD(double[] data)
data - data array
public double getSTD()
public double getMean(double[] data)
data - data array
public double getMean()
private void calculate(double[] data)
public double[] getData()
public double getSkew()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||