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