jhpro.stat
Class MomentsNorm

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

public class MomentsNorm
extends Object

Calculations of normalized reduced moments of a distribution. The normalised reduced moments are calculated as up to an orbitrary order n, where n is the oder of the moment. The factorial moments are defined as
F_1=1 (1st order),
F_2=/^2 (second order),
F_2=/N^3 (3rd order)
and so on. The general form is /^q. The code works only for integer random variables. Statistical errors are also evaluated. If they are set to 0, this means that there is no enough events for their calculation.


Constructor Summary
MomentsNorm(int order)
          Initialization of the normalised factorial moments.
 
Method Summary
 void doc()
          Show online documentation.
 double[] getErrors()
          Get errors on the factorial moment calculations.
 P1D getResults()
          Get results in form of P1D.
 double[] getValues()
          Get values of the normalised factorial moments (NFM).
 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

MomentsNorm

public MomentsNorm(int order)
Initialization of the normalised factorial moments.

Parameters:
order - Max oder of the normalised 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 normalised factorial moments (NFM).

Returns:
array with values of the NFM.

getErrors

public double[] getErrors()
Get errors on the factorial moment calculations. Call first getValues() to process the errors correctly. If the call returns 0, this means there is no enough evens for the calculation.

Returns:
array with statistical 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 ©