|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhpro.stat.Moments
public class Moments
Calculations of moments of a distribution. The moments are calculated as 1/Events sum^(events) (x^n), where n is the oder of the moment. Statistical errors are also evaluated.
| Constructor Summary | |
|---|---|
Moments(int order)
Initialization of the moments. |
|
| Method Summary | |
|---|---|
void |
doc()
Show online documentation. |
double[] |
getErrors()
Get errors on the moment calculations |
P1D |
getResults()
Get results in form of P1D. |
double[] |
getValues()
Get values of the moments |
void |
process(double n)
Process current event for a double random variable |
void |
process(int n)
Process current event for an integer random variable |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Moments(int order)
order - Max oder of the moment| Method Detail |
|---|
public void process(int n)
n - input variable for the moment calculationspublic void process(double n)
x - input variable for the moment calculationspublic double[] getValues()
public double[] getErrors()
public P1D getResults()
public void doc()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||