com.graphbuilder.math.func
Class MaxFunction

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

public class MaxFunction
extends java.lang.Object
implements Function

The max function.


Constructor Summary
MaxFunction()
           
 
Method Summary
 boolean acceptNumParam(int numParam)
          Returns true for 0 or more parameters, false otherwise.
 double of(double[] d, int numParam)
          Returns the maximum value of the specified inputs.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaxFunction

public MaxFunction()
Method Detail

of

public double of(double[] d,
                 int numParam)
Returns the maximum value of the specified inputs. Double.MAX_VALUE is returned for 0 parameters.

Specified by:
of in interface Function

acceptNumParam

public boolean acceptNumParam(int numParam)
Returns true for 0 or more parameters, false otherwise.

Specified by:
acceptNumParam in interface Function

toString

public java.lang.String toString()