com.yahoo.shopping
Class Avg

java.lang.Object
  extended by com.yahoo.shopping.Avg
All Implemented Interfaces:
AggregationFunction

public class Avg
extends java.lang.Object
implements AggregationFunction

Computes the average of the values in an Integer array.

Author:
Anne Siri Korsen & Trond Řivind Eriksen.

Constructor Summary
Avg()
           
 
Method Summary
 java.lang.Integer aggregate(java.lang.Integer[] hitScores)
           
 java.lang.Integer aggregate(java.lang.Integer[] hitScores, java.lang.Integer[] bottomScores)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Avg

public Avg()
Method Detail

aggregate

public java.lang.Integer aggregate(java.lang.Integer[] hitScores)
Specified by:
aggregate in interface AggregationFunction

aggregate

public java.lang.Integer aggregate(java.lang.Integer[] hitScores,
                                   java.lang.Integer[] bottomScores)
Specified by:
aggregate in interface AggregationFunction