Class ADecomposableMeasure<I,​O>

  • Type Parameters:
    I - The type of the inputs.
    O - The type of the measurement result.
    All Implemented Interfaces:
    IMeasure<I,​O>
    Direct Known Subclasses:
    ADecomposableDoubleMeasure

    public abstract class ADecomposableMeasure<I,​O>
    extends java.lang.Object
    implements IMeasure<I,​O>
    A measure that is aggregated from e.g. instance-wise computations of the respective measure and which is then aggregated, e.g. taking the mean.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<O> calculateMeasure​(java.util.List<I> actual, java.util.List<I> expected)
      Computes the measure for a lists of input actual and the expected outcome expected.
      O calculateMeasure​(java.util.List<I> actual, java.util.List<I> expected, ai.libs.jaicore.basic.aggregate.IAggregateFunction<O> aggregateFunction)
      Computes the measure for lists of input actual and the expected outcome expected and aggregates the measured values with the given aggregation.
      • Methods inherited from class java.lang.Object

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

      • ADecomposableMeasure

        public ADecomposableMeasure()
    • Method Detail

      • calculateMeasure

        public java.util.List<O> calculateMeasure​(java.util.List<I> actual,
                                                  java.util.List<I> expected)
        Description copied from interface: IMeasure
        Computes the measure for a lists of input actual and the expected outcome expected.
        Specified by:
        calculateMeasure in interface IMeasure<I,​O>
        Parameters:
        actual - The list of actually available values.
        expected - The list of expected values to compare the actual values with.
        Returns:
        The list of return values of the measure.
      • calculateMeasure

        public O calculateMeasure​(java.util.List<I> actual,
                                  java.util.List<I> expected,
                                  ai.libs.jaicore.basic.aggregate.IAggregateFunction<O> aggregateFunction)
        Description copied from interface: IMeasure
        Computes the measure for lists of input actual and the expected outcome expected and aggregates the measured values with the given aggregation.
        Specified by:
        calculateMeasure in interface IMeasure<I,​O>
        Parameters:
        actual - The list of actually available values.
        expected - The list of expected values to compare the actual values with.
        aggregateFunction - The aggregate function to be used to aggregate all the measurements.
        Returns:
        The aggregated return value of the measure.