jhpro.stat
Class MomentsFac

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

public class MomentsFac
extends Object

Calculations of factorial moments of a distribution. The factorial moments are calculated as up to the order n, where n is the oder of the moment. The factorial moments are defined as F_1= (1st order), F_2= (second order), F_2= (3rd order) and so on. The code works only for integer random variables. Statistical errors are also evaluated.


Constructor Summary
MomentsFac(int order)
          Initialization of the factorial 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 factorial moments
 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

MomentsFac

public MomentsFac(int order)
Initialization of the factorial moments.

Parameters:
order - Max oder of the factorial 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

getValues

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

Returns:
array with factorial moments.

getErrors

public double[] getErrors()
Get errors on the moment calculations. If 0, this means there is no enough events.

Returns:
array with errors.

getResults

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

Returns:
p1d with values and errors

doc

public void doc()
Show online documentation.



jHepWork 3.1 ©