com.monad.homerun.function.math
Class Mean

java.lang.Object
  extended by com.monad.homerun.function.math.Mean
All Implemented Interfaces:
Function

public class Mean
extends java.lang.Object
implements Function

Mean returns the average value of its arguments.


Constructor Summary
Mean()
           
 
Method Summary
 Value eval(java.util.List<Value> args)
          Returns the average (mean) of the arguments.
 java.lang.String getName()
          Returns the name of the function
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mean

public Mean()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Function
Returns the name of the function

Specified by:
getName in interface Function
Returns:
name the function name

eval

public Value eval(java.util.List<Value> args)
Returns the average (mean) of the arguments.

Specified by:
eval in interface Function
Returns:
the mean value


Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.