Class CoxianDistr
java.lang.Object
random.AbstractDistribution
random.CoxianDistr
- All Implemented Interfaces:
Distribution, StorableDistribution
This is the Coxian distribution.
Copyright (c) 2017
Imperial College London - Department of Computing
Copyright (c) 2017
Imperial College London - Department of Computing
- Author:
- Giuliano Casale
-
Field Summary
Fields inherited from class AbstractDistribution
engine -
Constructor Summary
Constructors -
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 obtain from the distribution the next number distributed according to the distribution parameter.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.
-
Constructor Details
-
CoxianDistr
public CoxianDistr()This is the constructor. It creates a new coxian distribution which is constituted by two serial exponential phases.
-
-
Method Details
-
setRandomEngine
- Specified by:
setRandomEnginein interfaceDistribution- Overrides:
setRandomEnginein classAbstractDistribution
-
pdf
This method is used to obtain from the distribution its probability distribution function evaluated where required by the user.- Specified by:
pdfin interfaceDistribution- Parameters:
x- double indicating where to evaluate the pdf.p- parameter of the coxian 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.- Specified by:
cdfin interfaceDistribution- Parameters:
x- double indicating where to evaluate the cdf.p- parameter of the coxian 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.- Specified by:
theorMeanin interfaceDistribution- Parameters:
p- parameter of the coxian 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.- Specified by:
theorVariancein interfaceDistribution- Parameters:
p- parameter of the coxian distribution.- Returns:
- double with the theoretic variance of the distribution.
- Throws:
IncorrectDistributionParameterException
-
nextRand
This method is used to obtain from the distribution the next number distributed according to the distribution parameter.- Specified by:
nextRandin interfaceDistribution- Parameters:
p- parameter of the coxian distribution.- Returns:
- double with the next random number of this distribution.
- Throws:
IncorrectDistributionParameterException
-