Package info.debatty.java.aggregation
Class OWA
- java.lang.Object
-
- info.debatty.java.aggregation.OWA
-
- All Implemented Interfaces:
AggregatorInterface
public class OWA extends java.lang.Object implements AggregatorInterface
Ordered Weighted Average aggregation.- Author:
- Thibault Debatty
-
-
Constructor Summary
Constructors Constructor Description OWA(double[] weights)Initialize with provided weights.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleaggregate(double[] values)Aggregate the provided values.protected doublearraySum(double[] values)Method to sum the elements in an double array.
-
-
-
Method Detail
-
aggregate
public final double aggregate(double[] values)
Description copied from interface:AggregatorInterfaceAggregate the provided values.- Specified by:
aggregatein interfaceAggregatorInterface- Returns:
-
arraySum
protected final double arraySum(double[] values)
Method to sum the elements in an double array. Used to check if the sum of vector's elements is equal to 1.0.- Parameters:
values-- Returns:
-
-