com.banda.function.business
Class NormalRandomFunction

java.lang.Object
  extended by org.nfunk.jep.function.PostfixMathCommand
      extended by com.banda.function.business.NormalRandomFunction
All Implemented Interfaces:
org.nfunk.jep.function.PostfixMathCommandI

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

Gaussian random function (Normal distribution) defined for JEP tree / parser.


Field Summary
static String TAG
           
 
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand
curNumberOfParameters, numberOfParameters
 
Constructor Summary
NormalRandomFunction()
           
 
Method Summary
 void run(Stack stack)
          Generated the random number from given interval
 
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand
checkStack, getNumberOfParameters, setCurNumberOfParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG

public static final String TAG
See Also:
Constant Field Values
Constructor Detail

NormalRandomFunction

public NormalRandomFunction()
Method Detail

run

public void run(Stack stack)
         throws org.nfunk.jep.ParseException
Generated the random number from given interval

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 © 2012. All Rights Reserved.