Class AbstractStatistic

    • Field Detail

      • DEFAULT_CONFIDENCE_LEVEL

        public static final double DEFAULT_CONFIDENCE_LEVEL
        the default confidence level
        See Also:
        Constant Field Values
      • myConfidenceLevel

        protected double myConfidenceLevel
        Holds the confidence coefficient for the statistic
      • myNumMissing

        protected double myNumMissing
        Used to count the number of missing data points presented When a data point having the value of (Double.NaN, Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY) are presented it is excluded from the summary statistics and the number of missing points is noted. Implementers of subclasses are responsible for properly collecting this value and resetting this value.
    • Constructor Detail

      • AbstractStatistic

        public AbstractStatistic()
      • AbstractStatistic

        public AbstractStatistic​(java.lang.String name)
        Parameters:
        name - the name of the statistic, can be null
    • Method Detail

      • setConfidenceLevel

        public void setConfidenceLevel​(double level)
        Sets the confidence level for the statistic
        Parameters:
        level - must be in (0, 1)
      • getConfidenceLevel

        public double getConfidenceLevel()
        Description copied from interface: StatisticAccessorIfc
        Gets the confidence level. The default is given by Statistic.DEFAULT_CONFIDENCE_LEVEL = 0.95, which is a 95% confidence level
        Specified by:
        getConfidenceLevel in interface StatisticAccessorIfc
        Returns:
        A double representing the confidence level
      • getNumberMissing

        public double getNumberMissing()
        Description copied from interface: StatisticAccessorIfc
        When a data point having the value of (Double.NaN, Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY) are presented it is excluded from the summary statistics and the number of missing points is noted. This method reports the number of missing points that occurred during the collection
        Specified by:
        getNumberMissing in interface StatisticAccessorIfc
        Returns:
        the number missing
      • compareTo

        public int compareTo​(AbstractStatistic stat)
        Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object. The natural ordering is based on getAverage() with equals.
        Specified by:
        compareTo in interface java.lang.Comparable<AbstractStatistic>
        Parameters:
        stat - The statistic to compare this statistic to
        Returns:
        Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.