com.graphbuilder.math.func
Class FactFunction

java.lang.Object
  extended bycom.graphbuilder.math.func.FactFunction
All Implemented Interfaces:
Function

public class FactFunction
extends java.lang.Object
implements Function

The factorial function.


Constructor Summary
FactFunction()
           
 
Method Summary
 boolean acceptNumParam(int numParam)
          Returns true only for 1 parameter, false otherwise.
 double of(double[] d, int numParam)
          Takes the (int) of the value at index location 0 and computes the factorial of that number.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FactFunction

public FactFunction()
Method Detail

of

public double of(double[] d,
                 int numParam)
Takes the (int) of the value at index location 0 and computes the factorial of that number.

Specified by:
of in interface Function

acceptNumParam

public boolean acceptNumParam(int numParam)
Returns true only for 1 parameter, false otherwise.

Specified by:
acceptNumParam in interface Function

toString

public java.lang.String toString()