Package com.graphbuilder.math.func
Class RandFunction
java.lang.Object
com.graphbuilder.math.func.RandFunction
- All Implemented Interfaces:
Function
The random function.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptNumParam(int numParam) Returns true only for 0 parameters, false otherwise.doubleof(double[] d, int numParam) Returns a random value in the range [0, 1) that does not depend on the input.toString()
-
Constructor Details
-
RandFunction
public RandFunction()
-
-
Method Details
-
of
public double of(double[] d, int numParam) Returns a random value in the range [0, 1) that does not depend on the input. -
acceptNumParam
public boolean acceptNumParam(int numParam) Returns true only for 0 parameters, false otherwise.- Specified by:
acceptNumParamin interfaceFunction
-
toString
-