Package org.aksw.palmetto.evaluate
Class SpeedComparison.TimeMeasuringAggregation
- java.lang.Object
-
- org.aksw.palmetto.evaluate.SpeedComparison.AbstractTimeMeasuringModule
-
- org.aksw.palmetto.evaluate.SpeedComparison.TimeMeasuringAggregation
-
- All Implemented Interfaces:
Aggregation
- Enclosing class:
- SpeedComparison
public static class SpeedComparison.TimeMeasuringAggregation extends SpeedComparison.AbstractTimeMeasuringModule implements Aggregation
-
-
Field Summary
Fields Modifier and Type Field Description protected Aggregationdecorated-
Fields inherited from interface org.aksw.palmetto.aggregation.Aggregation
RETURN_VALUE_FOR_UNDEFINED
-
-
Constructor Summary
Constructors Constructor Description TimeMeasuringAggregation(Aggregation decorated, int numberOfWarmups, int numberOfRuns)TimeMeasuringAggregation(Aggregation decorated, String name, int numberOfWarmups, int numberOfRuns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Returns the name of the aggregation.doublesummarize(double[] values)Aggregates the given confirmation values and returns a single coherence value.doublesummarize(double[] values, double[] weights)Aggregates the product of the given confirmation values and the given weights and returns a single coherence value.-
Methods inherited from class org.aksw.palmetto.evaluate.SpeedComparison.AbstractTimeMeasuringModule
addTimeMeasurement, increaseRunId, printStatistics
-
-
-
-
Field Detail
-
decorated
protected Aggregation decorated
-
-
Constructor Detail
-
TimeMeasuringAggregation
public TimeMeasuringAggregation(Aggregation decorated, int numberOfWarmups, int numberOfRuns)
-
TimeMeasuringAggregation
public TimeMeasuringAggregation(Aggregation decorated, String name, int numberOfWarmups, int numberOfRuns)
-
-
Method Detail
-
summarize
public double summarize(double[] values)
Description copied from interface:AggregationAggregates the given confirmation values and returns a single coherence value.- Specified by:
summarizein interfaceAggregation- Parameters:
values- values that should be aggregated- Returns:
- aggregated value
-
summarize
public double summarize(double[] values, double[] weights)Description copied from interface:AggregationAggregates the product of the given confirmation values and the given weights and returns a single coherence value.- Specified by:
summarizein interfaceAggregation- Parameters:
values- values that should be aggregatedweights- weights of the single values- Returns:
- aggregated value
-
getName
public String getName()
Description copied from interface:AggregationReturns the name of the aggregation.- Specified by:
getNamein interfaceAggregation- Returns:
- name of the aggregation
-
-