Package se.hb.jcp.cp.measures
Class AggregatedPriorMeasure
- java.lang.Object
-
- se.hb.jcp.cp.measures.AggregatedPriorMeasure
-
public class AggregatedPriorMeasure extends java.lang.ObjectMaintains 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
-
-
Constructor Summary
Constructors Constructor Description AggregatedPriorMeasure(IPriorMeasure measure)Creates an aggregating prior measure from the single prediction one.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(ConformalClassification prediction)Adds the supplied conformal prediction to the aggregated prior measure.doublegetMean()Gets the current mean of the aggregated prior measure.intgetNumberOfObservations()Gets the current number of observations of the measure.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-