Class EvaluationResultAggregateOperation
- java.lang.Object
-
- org.processmining.placebasedlpmdiscovery.lpmevaluation.results.aggregateoperations.EvaluationResultAggregateOperation
-
public class EvaluationResultAggregateOperation extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description EvaluationResultAggregateOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvaluationResultAggregateOperationaddWeight(LPMEvaluationResultId id, int weight)Adds a concrete weight for some evaluation result instead of the default 1doubleaggregate(java.util.Collection<LPMEvaluationResult> results)Aggregates the results of the input list.
-
-
-
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 weightweight- : the weight we want to set- Returns:
- the updated object so that we can stream multiple calls
-
-