Class FunctionValueCalculator
java.lang.Object
tools.descartes.dlim.generator.util.FunctionValueCalculator
Calculates and returns the arrival rate values for all simple Functions. Simple Functions are all
children of dlim.Function, that do not nest other Functions.
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionValueCalculator
(org.apache.commons.math3.random.JDKRandomGenerator rndGenerator, String noiseMode) Create a new FunctionValueCalculator. -
Method Summary
Modifier and TypeMethodDescriptiondouble
getSimpleFunctionValue
(Function f, double x) Returns the value of a Function f with input x.void
setNoiseMode
(String noiseMode) Sets the noise mode.
-
Constructor Details
-
FunctionValueCalculator
public FunctionValueCalculator(org.apache.commons.math3.random.JDKRandomGenerator rndGenerator, String noiseMode) Create a new FunctionValueCalculator.- Parameters:
rndGenerator
- The random number generator for Noises.noiseMode
- Set this to IGeneratorConstants.CALIBRATION if Noises are to return 0.
-
-
Method Details
-
getSimpleFunctionValue
Returns the value of a Function f with input x.- Parameters:
f
- the Function fx
- the double x- Returns:
- f(x)
-
setNoiseMode
Sets the noise mode.- Parameters:
noiseMode
- the new noise mode
-