Class AggregatedPriorMeasures


  • public class AggregatedPriorMeasures
    extends java.lang.Object
    Maintains running averages for a set of prior measures. 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 measures.
      AggregatedPriorMeasure getMeasure​(int i)
      Gets one of the aggregated prior measures in this set.
      int size()
      Returns the number of measures in this set.
      • Methods inherited from class java.lang.Object

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

      • AggregatedPriorMeasures

        public AggregatedPriorMeasures()
        Creates the default set of aggregating prior measures.
      • AggregatedPriorMeasures

        public AggregatedPriorMeasures​(IPriorMeasure[] measures)
        Creates a set of aggregating prior measures from an array of single prediction ones.
        Parameters:
        measures - the prior measures.
    • Method Detail

      • add

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

        public AggregatedPriorMeasure getMeasure​(int i)
        Gets one of the aggregated prior measures in this set.
        Parameters:
        i - the index (0 to size()-1) of the measure.
        Returns:
        a AggregatedPriorMeasure.
      • size

        public int size()
        Returns the number of measures in this set.
        Returns:
        the number of measures in this set.