| net.sf.jga.fn.arithmetic.Average
Average | public class Average extends UnaryFunctor,T> (Code) | | Averages numeric values in an iteration.
Copyright © 2005 David A. Hall
author: David A. Hall |
serialVersionUID | final static long serialVersionUID(Code) | | |
Average | public Average(Class<T> type)(Code) | | Builds a functor that averages numeric values in an iteration
|
accept | public void accept(net.sf.jga.fn.Visitor v)(Code) | | Calls the Visitor's visit(Average) method, if it
implements the nested Visitor interface.
|
fn | public T fn(Iterator<T> iterator)(Code) | | Returns the average of the elements in the iteration
|
|
|