jhpro.stat
Class Moments

java.lang.Object
  extended by jhpro.stat.Moments

public class Moments
extends java.lang.Object

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

Moments

public Moments(int order)
Initialization of the moments.

Parameters:
order - Max oder of the moment
Method Detail

process

public void process(int n)
Process current event for an integer random variable

Parameters:
n - input variable for the moment calculations

process

public void process(double n)
Process current event for a double random variable

Parameters:
x - input variable for the moment calculations

getValues

public double[] getValues()
Get values of the moments

Returns:

getErrors

public double[] getErrors()
Get errors on the moment calculations

Returns:

getResults

public P1D getResults()
Get results in form of P1D.

Returns:
p1d with values and errors

doc

public void doc()
Show online documentation.



jHepWork 2.8 (©) S.Chekanov