Interface Distribution
- All Superinterfaces:
StorableDistribution
- All Known Implementing Classes:
Batch, Burst, CoxianDistr, DeterministicDistr, Empirical, Erlang, Exponential, GammaDistr, HyperExp, Lognormal, MAPDistr, MMPP2Distr, Normal, Pareto, PhaseTypeDistr, Poisson, Replayer, StudentT, Uniform, Weibull
This is the Distribution abstract class, which is the interface of all distributions.
Copyright (c) 2003
Politecnico di Milano - dipartimento di Elettronica e Informazione
Copyright (c) 2003
Politecnico di Milano - dipartimento di Elettronica e Informazione
- Author:
- Federico Granata (modified by Fabrizio Frontera), Modified by Stefano Omini, 7/5/2004
-
Method Summary
Modifier and TypeMethodDescriptiondoubleThis method is used to obtain from the distribution its cumulative distribution function evaluated where required by the user.doubleThis method is used to ask all the distribution to return a new random number distributed according to the distribution name.doubleThis method is used to obtain from the distribution its probability distribution function evaluated where required by the user.voidsetRandomEngine(RandomEngine engine) doubleThis method is used to obtain from the distribution the value of its own theoretic mean.doubleThis method is used to obtain from the distribution the value of its own theoretic variance.
-
Method Details
-
nextRand
This method is used to ask all the distribution to return a new random number distributed according to the distribution name.- Parameters:
p- parameter of the distribution.- Returns:
- double with the next random number from the sequence.
- Throws:
IncorrectDistributionParameterException
-
pdf
This method is used to obtain from the distribution its probability distribution function evaluated where required by the user.- Parameters:
x- double indicating where to evaluate the pdf.p- parameter of the distribution.- Returns:
- double with the probability distribution function evaluated in x.
- Throws:
IncorrectDistributionParameterException
-
cdf
This method is used to obtain from the distribution its cumulative distribution function evaluated where required by the user.- Parameters:
x- double indicating where to evaluate the cdf.p- parameter of the distribution.- Returns:
- double with the cumulative distribution function evaluated in x.
- Throws:
IncorrectDistributionParameterException
-
theorMean
This method is used to obtain from the distribution the value of its own theoretic mean.- Parameters:
p- parameter of the distribution.- Returns:
- double with the theoretic mean of the distribution.
- Throws:
IncorrectDistributionParameterException
-
theorVariance
This method is used to obtain from the distribution the value of its own theoretic variance.- Parameters:
p- parameter of the distribution.- Returns:
- double with the theoretic variance of the distribution.
- Throws:
IncorrectDistributionParameterException
-
setRandomEngine
-