Moments
jhpro.stat

Class Moments



  • public class Momentsextends Object
    Calculations 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.
    • 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.

SCaVis 2.1 © jWork.ORG