com.rapidminer.tools.math.function.expressions
Class Average

java.lang.Object
  extended by org.nfunk.jep.function.PostfixMathCommand
      extended by com.rapidminer.tools.math.function.expressions.Average
All Implemented Interfaces:
org.nfunk.jep.function.PostfixMathCommandI

public class Average
extends org.nfunk.jep.function.PostfixMathCommand

Calculates the average of an arbitrary number of arguments.

Author:
Ingo Mierswa

Field Summary
 
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand
curNumberOfParameters, numberOfParameters
 
Constructor Summary
Average()
           
 
Method Summary
 void run(java.util.Stack stack)
          Calculates the result of summing up all parameters, which are assumed to be of the Double type.
 
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Average

public Average()
Method Detail

run

public void run(java.util.Stack stack)
         throws org.nfunk.jep.ParseException
Calculates the result of summing up all parameters, which are assumed to be of the Double type.

Specified by:
run in interface org.nfunk.jep.function.PostfixMathCommandI
Overrides:
run in class org.nfunk.jep.function.PostfixMathCommand
Throws:
org.nfunk.jep.ParseException


Copyright © 2001-2009 by Rapid-I