Documentation of 'jhpro.stat.Moments' Java class
Moments
jhpro.stat

Class Moments



  • public class Moments
    extends java.lang.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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void doc()
      Show online documentation.
      double[] getErrors()
      Get errors on the moment calculations
      P1D getResults()
      Get results in form of P1D.
      double[] getValues()
      Get values of the moments
      void process(double n)
      Process current event for a double random variable
      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

      • 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

You see the box below because you did not login.