Class ExceedanceEstimator

    • Field Detail

      • myThresholds

        protected double[] myThresholds
        The thresholds for the exceedance estimates
      • myCounts

        protected double[] myCounts
        Counts the number of times threshold is exceeded
      • num

        protected double num
        Holds the number of observations observed
    • Constructor Detail

      • ExceedanceEstimator

        public ExceedanceEstimator​(double... thresholds)
      • ExceedanceEstimator

        public ExceedanceEstimator​(java.lang.String name,
                                   double[] thresholds)
    • Method Detail

      • collect

        public void collect​(double x)
        Description copied from interface: CollectorIfc
        Collect on the supplied value
        Parameters:
        x - a double representing the observation
      • reset

        public void reset()
        Description copied from interface: CollectorIfc
        Resets the collector as if no observations had been collected.
      • getFrequencies

        public final double[] getFrequencies()
      • getFrequency

        public final double getFrequency​(int i)
      • getProportion

        public final double getProportion​(int i)
      • getProportions

        public final double[] getProportions()
      • getValueFrequencies

        public final double[][] getValueFrequencies()
      • getValueProportions

        public final double[][] getValueProportions()
      • getNumberDataPointsSaved

        public final double getNumberDataPointsSaved()
        Gets the count of the number of the observations.
        Returns:
        A double representing the count
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • main

        public static void main​(java.lang.String[] args)