org.pentaho.reporting.libraries.formula.function.math
Class AverageFunction

java.lang.Object
  extended by org.pentaho.reporting.libraries.formula.function.math.AverageFunction
All Implemented Interfaces:
java.io.Serializable, Function
Direct Known Subclasses:
AverageAFunction

public class AverageFunction
extends java.lang.Object
implements Function

This function returns the average of the number sequence.

Author:
Cedric Pronzato
See Also:
Serialized Form

Constructor Summary
  AverageFunction()
           
protected AverageFunction(SumFunction sumFunction)
           
 
Method Summary
 TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters)
           
 java.lang.String getCanonicalName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AverageFunction

public AverageFunction()

AverageFunction

protected AverageFunction(SumFunction sumFunction)
Method Detail

getCanonicalName

public java.lang.String getCanonicalName()
Specified by:
getCanonicalName in interface Function

evaluate

public TypeValuePair evaluate(FormulaContext context,
                              ParameterCallback parameters)
                       throws EvaluationException
Specified by:
evaluate in interface Function
Throws:
EvaluationException