Class AggregatedPriorMeasure


  • public class AggregatedPriorMeasure
    extends java.lang.Object
    Maintains a running average of a prior measure. See [V. Vovk, V. Fedorova, I. Nouretdinov and A. Gammerman, "Criteria of Efficiency for Conformal Prediction", COPA 2016, LNAI 9653, pp. 23-39, 2016] for the definitions used here.
    Author:
    anders.gidenstam(at)hb.se
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(ConformalClassification prediction)
      Adds the supplied conformal prediction to the aggregated prior measure.
      double getMean()
      Gets the current mean of the aggregated prior measure.
      int getNumberOfObservations()
      Gets the current number of observations of the measure.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AggregatedPriorMeasure

        public AggregatedPriorMeasure​(IPriorMeasure measure)
        Creates an aggregating prior measure from the single prediction one.
        Parameters:
        measure - the prior measure.
    • Method Detail

      • add

        public void add​(ConformalClassification prediction)
        Adds the supplied conformal prediction to the aggregated prior measure.
        Parameters:
        prediction - a ConformalClassification.
      • getNumberOfObservations

        public int getNumberOfObservations()
        Gets the current number of observations of the measure.
        Returns:
        the current number of observations.
      • getMean

        public double getMean()
        Gets the current mean of the aggregated prior measure.
        Returns:
        the current mean of the aggregated prior measure.
      • toString

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