Package org.aksw.palmetto.aggregation
Interface Aggregation
-
- All Known Implementing Classes:
ArithmeticMean,GeometricMean,HarmonicMean,Max,Median,Min,QuadraticMean,SpeedComparison.TimeMeasuringAggregation
public interface AggregationAggregates the given confirmation values and returns a single coherence value.- Author:
- m.roeder
-
-
Field Summary
Fields Modifier and Type Field Description static doubleRETURN_VALUE_FOR_UNDEFINEDThe return value if the aggregation of the given values is not defined.
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Field Detail
-
RETURN_VALUE_FOR_UNDEFINED
static final double RETURN_VALUE_FOR_UNDEFINED
The return value if the aggregation of the given values is not defined.- See Also:
- Constant Field Values
-
-
Method Detail
-
summarize
double summarize(double[] values)
Aggregates the given confirmation values and returns a single coherence value.- Parameters:
values- values that should be aggregated- Returns:
- aggregated value
-
summarize
double summarize(double[] values, double[] weights)Aggregates the product of the given confirmation values and the given weights and returns a single coherence value.- Parameters:
values- values that should be aggregatedweights- weights of the single values- Returns:
- aggregated value
-
getName
String getName()
Returns the name of the aggregation.- Returns:
- name of the aggregation
-
-