Class GammaDistFunctionFromMoments
java.lang.Object
de.uka.ipd.sdq.simucomframework.variables.functions.AbstractProbDistFunction
de.uka.ipd.sdq.simucomframework.variables.functions.GammaDistFunctionFromMoments
- All Implemented Interfaces:
IFunction
Gamma distribution with shape alpha > 0 and inverse scale parameter beta > 0 There is another way
to write the gamma function with k = alpha and theta = 1/beta,
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.simucomframework.variables.functions.AbstractProbDistFunction
factory, randomGen
-
Constructor Summary
ConstructorDescriptionGammaDistFunctionFromMoments
(de.uka.ipd.sdq.probfunction.math.IRandomGenerator randomGen, de.uka.ipd.sdq.probfunction.math.IPDFFactory factory) -
Method Summary
-
Constructor Details
-
GammaDistFunctionFromMoments
public GammaDistFunctionFromMoments(de.uka.ipd.sdq.probfunction.math.IRandomGenerator randomGen, de.uka.ipd.sdq.probfunction.math.IPDFFactory factory)
-
-
Method Details
-
checkParameters
Checks the validity of the parameter. GammaDistFunctionFromMoments takes two parameters mean and c coefficient of variance mean needs to be larger than 0. c needs to be larger than 0.- Parameters:
parameters
- A set of parameters to be processed- Returns:
- true if the parameters fit to the functions preconditions, false otherwise
-
evaluate
Description copied from interface:IFunction
Evaluate the functions result using the parameters given- Parameters:
parameters
- Parameters for the function- Returns:
- Value of the function
-