View Javadoc

1   package cz.cuni.amis.utils.statistic;
2   
3   /**
4    * Returns an average of all items passed.
5    * 
6    * @author Jimmy
7    *
8    * @param <TYPE>
9    */
10  public interface IAveragator<TYPE> {
11  
12  	/**
13  	 * Returns an average of all items passed.
14  	 * 
15  	 * @param items to make average from
16  	 * @return average of all 'items'
17  	 */
18  	public TYPE getAverage(TYPE[] items);
19  	
20  }