Package org.aksw.palmetto.aggregation
Class GeometricMean
java.lang.Object
org.aksw.palmetto.aggregation.GeometricMean
- All Implemented Interfaces:
Aggregation
-
Field Summary
Fields inherited from interface org.aksw.palmetto.aggregation.Aggregation
RETURN_VALUE_FOR_UNDEFINED -
Constructor Summary
Constructors -
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.toString()
-
Constructor Details
-
GeometricMean
public GeometricMean()
-
-
Method Details
-
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
-
getName
Description copied from interface:AggregationReturns the name of the aggregation.- Specified by:
getNamein interfaceAggregation- Returns:
- name of the aggregation
-
toString
-
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
-