jhpro.stat
Class MomentsFacNorm
- java.lang.Object
-
- jhpro.stat.MomentsFacNorm
-
public class MomentsFacNorm extends java.lang.ObjectCalculations 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
Constructors Constructor and Description MomentsFacNorm(int order)Initialization of the normalised factorial moments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddoc()Show online documentation.double[]getErrors()Get errors on the factorial moment calculations.P1DgetResults()Get results in form of P1D.double[]getValues()Get values of the normalised factorial moments (NFM).voidprocess(int n)Process current event for an integer random variable
-
-
-
Constructor Detail
-
MomentsFacNorm
public MomentsFacNorm(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:
- 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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG