Package com.graphbuilder.math.func
Class AvgFunction
java.lang.Object
com.graphbuilder.math.func.AvgFunction
- All Implemented Interfaces:
Function
The average 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 average of the values in the array from [0, numParam).toString()
-
Constructor Details
-
AvgFunction
public AvgFunction()
-
-
Method Details
-
of
public double of(double[] d, int numParam) Returns the average 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
-