The mod function. More...


Public Member Functions | |
| ModFunction () | |
| double | of (double[] d, int numParam) |
| Returns the value of x % y, where x = d[0] and y = d[1]. | |
| boolean | acceptNumParam (int numParam) |
| Returns true only for 2 parameters, false otherwise. | |
| String | toString () |
The mod function.
Definition at line 6 of file ModFunction.java.
| com.graphbuilder.math.func.ModFunction.ModFunction | ( | ) |
Definition at line 8 of file ModFunction.java.
| boolean com.graphbuilder.math.func.ModFunction.acceptNumParam | ( | int | numParam | ) |
Returns true only for 2 parameters, false otherwise.
Implements com.graphbuilder.math.func.Function.
Definition at line 21 of file ModFunction.java.
| double com.graphbuilder.math.func.ModFunction.of | ( | double[] | d, | |
| int | numParam | |||
| ) |
Returns the value of x % y, where x = d[0] and y = d[1].
More precisely, the value returned is x minus the value of x / y, where x / y is rounded to the closest integer value towards 0.
Implements com.graphbuilder.math.func.Function.
Definition at line 14 of file ModFunction.java.
| String com.graphbuilder.math.func.ModFunction.toString | ( | ) |
Definition at line 25 of file ModFunction.java.
1.6.1