Package org.aksw.palmetto.aggregation
Interface Aggregation
- All Known Implementing Classes:
ArithmeticMean,GeometricMean,HarmonicMean,Max,Median,Min,QuadraticMean
public interface Aggregation
Aggregates the given confirmation values and returns a single coherence
value.
- Author:
- m.roeder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic doubleThe return value if the aggregation of the given values is not defined. -
Method Summary
Modifier and TypeMethodDescriptiongetName()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 Details
-
RETURN_VALUE_FOR_UNDEFINED
static final double RETURN_VALUE_FOR_UNDEFINEDThe return value if the aggregation of the given values is not defined.- See Also:
- Constant Field Values
-
-
Method Details
-
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
-