Class EvaluationResultAggregateOperation


  • public class EvaluationResultAggregateOperation
    extends java.lang.Object
    • Constructor Detail

      • EvaluationResultAggregateOperation

        public EvaluationResultAggregateOperation()
    • Method Detail

      • aggregate

        public double aggregate​(java.util.Collection<LPMEvaluationResult> results)
        Aggregates the results of the input list. If for none of the results a specific weight was set, it will return average of all results in the list
        Parameters:
        results - : list of results we want to aggregate
        Returns:
        aggregate value of the results
      • addWeight

        public EvaluationResultAggregateOperation addWeight​(LPMEvaluationResultId id,
                                                            int weight)
        Adds a concrete weight for some evaluation result instead of the default 1
        Parameters:
        id - : the id of the evaluation result for which we want to have specific weight
        weight - : the weight we want to set
        Returns:
        the updated object so that we can stream multiple calls