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
FieldsModifier and TypeFieldDescriptionprivate net.ssehub.easy.instantiation.core.model.vilTypes.Set<eu.qualimaster.observables.IObservable> private doubleprivate net.ssehub.easy.instantiation.core.model.vilTypes.Map<eu.qualimaster.observables.IObservable, Double> private double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateUpdateProcessor(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 TypeMethodDescriptionvoidpostProcess(String name) Postprocesses a named entry for multiple predictions.voidProcesses a single prediction.
-
Field Details
-
max
-
weighting
private net.ssehub.easy.instantiation.core.model.vilTypes.Map<eu.qualimaster.observables.IObservable,Double> weighting -
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 predictionsweighting- contains the weightings, negative weights invert the value by subtracting from the respective maximumresult- filled with results (changed as a side effect)costs- weights to be counted negative
-
-
Method Details
-
process
Description copied from interface:Weighting.IPredictionProcessorProcesses a single prediction.- Specified by:
processin interfaceWeighting.IPredictionProcessor- Parameters:
obs- the observableprediction- the prediction
-
postProcess
Description copied from interface:Weighting.IPredictionProcessorPostprocesses a named entry for multiple predictions.- Specified by:
postProcessin interfaceWeighting.IPredictionProcessor- Parameters:
name- the name
-