jhpro.stat
Class MomentsFacNorm
java.lang.Object
jhpro.stat.MomentsFacNorm
public class MomentsFacNorm
- extends Object
Calculations of normalized factorial moments of a distribution. The
normalised factorial 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 F_q= /^q, where
N^[q]=N*(N-1)*..(N-q+1). 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 |
MomentsFacNorm(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 |
MomentsFacNorm
public MomentsFacNorm(int order)
- Initialization of the normalised factorial moments.
- Parameters:
order - Max oder of the normalised factorial moment
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:
- aeeay 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.2 © jWork.org