Class Weighting.UpdateProcessor

java.lang.Object
eu.qualimaster.easy.extension.internal.Weighting.UpdateProcessor
All Implemented Interfaces:
Weighting.IPredictionProcessor
Enclosing class:
Weighting

private static class Weighting.UpdateProcessor extends Object implements Weighting.IPredictionProcessor
Implements an update processor calculating the weighted predictions.
Author:
Holger Eichelberger
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private net.ssehub.easy.instantiation.core.model.vilTypes.Set<eu.qualimaster.observables.IObservable>
     
    private HashMap<eu.qualimaster.observables.IObservable,Double>
     
     
    private double
     
    private net.ssehub.easy.instantiation.core.model.vilTypes.Map<eu.qualimaster.observables.IObservable,Double>
     
    private double
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    UpdateProcessor(Weighting.MaxProcessor max, net.ssehub.easy.instantiation.core.model.vilTypes.Map<eu.qualimaster.observables.IObservable,Double> weighting, HashMap<String,Double> result, net.ssehub.easy.instantiation.core.model.vilTypes.Set<eu.qualimaster.observables.IObservable> costs)
    Creates the processor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Postprocesses a named entry for multiple predictions.
    void
    process(eu.qualimaster.observables.IObservable obs, Double prediction)
    Processes a single prediction.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • max

      private HashMap<eu.qualimaster.observables.IObservable,Double> max
    • weighting

      private net.ssehub.easy.instantiation.core.model.vilTypes.Map<eu.qualimaster.observables.IObservable,Double> weighting
    • result

      private HashMap<String,Double> result
    • costs

      private net.ssehub.easy.instantiation.core.model.vilTypes.Set<eu.qualimaster.observables.IObservable> costs
    • sum

      private double sum
    • weights

      private double weights
  • Constructor Details

    • UpdateProcessor

      private UpdateProcessor(Weighting.MaxProcessor max, net.ssehub.easy.instantiation.core.model.vilTypes.Map<eu.qualimaster.observables.IObservable,Double> weighting, HashMap<String,Double> result, net.ssehub.easy.instantiation.core.model.vilTypes.Set<eu.qualimaster.observables.IObservable> costs)
      Creates the processor.
      Parameters:
      max - contains the maximum predictions
      weighting - contains the weightings, negative weights invert the value by subtracting from the respective maximum
      result - filled with results (changed as a side effect)
      costs - weights to be counted negative
  • Method Details