jhpro.stat
Class Moments
- java.lang.Object
-
- jhpro.stat.Moments
-
public class Moments extends java.lang.ObjectCalculations 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
Constructors Constructor and Description Moments(int order)Initialization of the 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 moment calculationsP1DgetResults()Get results in form of P1D.double[]getValues()Get values of the momentsvoidprocess(double n)Process current event for a double random variablevoidprocess(int n)Process current event for an integer random variable
-
-
-
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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG