Class StatUtil


  • public class StatUtil
    extends java.lang.Object
    simple statistical util-methods
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double calcMean​(double[] values)
      calculates the average of the given values
      static double calcRms​(double[] values)
      calculates the rms of the given array of values
      static double calcStandardDeviation​(double[] values, double meanValue)
      calculates an estimate for the standard deviation with respect to the given mean.
      static java.lang.String createMeanRmsString​(double[] values)
      creates a predefined string, that contains useful statistical information.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createMeanRmsString

        public static final java.lang.String createMeanRmsString​(double[] values)
        creates a predefined string, that contains useful statistical information.
        Parameters:
        values - the values for which to calc the stats
        Returns:
        the string
      • calcMean

        public static final double calcMean​(double[] values)
        calculates the average of the given values
        Parameters:
        values - the values to calc the average from
        Returns:
        the average
      • calcRms

        public static final double calcRms​(double[] values)
        calculates the rms of the given array of values
        Parameters:
        values - the values to calc the rms from
        Returns:
        the rms
      • calcStandardDeviation

        public static final double calcStandardDeviation​(double[] values,
                                                         double meanValue)
        calculates an estimate for the standard deviation with respect to the given mean.
        Parameters:
        values - the values for which to calc the diff-rms
        meanValue - the value to calc the diff to for each value.
        Returns:
        the diff-rms