Package com.graphbuilder.math.func
Class SumFunction
java.lang.Object
com.graphbuilder.math.func.SumFunction
- All Implemented Interfaces:
Function
The sum function.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptNumParam(int numParam) Returns true for 1 or more parameters, false otherwise.doubleof(double[] d, int numParam) Returns the sum of the values in the array from [0, numParam).toString()
-
Constructor Details
-
SumFunction
public SumFunction()
-
-
Method Details
-
of
public double of(double[] d, int numParam) Returns the sum of the values in the array from [0, numParam). -
acceptNumParam
public boolean acceptNumParam(int numParam) Returns true for 1 or more parameters, false otherwise.- Specified by:
acceptNumParamin interfaceFunction
-
toString
-