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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the aggregation.
    double
    summarize​(double[] values)
    Aggregates the given confirmation values and returns a single coherence value.
    double
    summarize​(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 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Median

      public Median()
  • Method Details

    • summarize

      public double summarize(double[] values)
      Description copied from interface: Aggregation
      Aggregates the given confirmation values and returns a single coherence value.
      Specified by:
      summarize in interface Aggregation
      Parameters:
      values - values that should be aggregated
      Returns:
      aggregated value
    • getName

      public String getName()
      Description copied from interface: Aggregation
      Returns the name of the aggregation.
      Specified by:
      getName in interface Aggregation
      Returns:
      name of the aggregation
    • summarize

      public double summarize(double[] values, double[] weights)
      Description copied from interface: Aggregation
      Aggregates the product of the given confirmation values and the given weights and returns a single coherence value.
      Specified by:
      summarize in interface Aggregation
      Parameters:
      values - values that should be aggregated
      weights - weights of the single values
      Returns:
      aggregated value