Package com.graphbuilder.math.func
Class MaxFunction
java.lang.Object
com.graphbuilder.math.func.MaxFunction
- All Implemented Interfaces:
Function
The max function.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptNumParam(int numParam) Returns true for 0 or more parameters, false otherwise.doubleof(double[] d, int numParam) Returns the maximum value of the specified inputs.toString()
-
Constructor Details
-
MaxFunction
public MaxFunction()
-
-
Method Details
-
of
public double of(double[] d, int numParam) Returns the maximum value of the specified inputs. Double.MAX_VALUE is returned for 0 parameters. -
acceptNumParam
public boolean acceptNumParam(int numParam) Returns true for 0 or more parameters, false otherwise.- Specified by:
acceptNumParamin interfaceFunction
-
toString
-