Class MMPP2Par
java.lang.Object
random.AbstractParameter
random.MMPP2Par
This is the parameter that should be passed to the MMPP2
distribution.
Copyright (c) 2008
Politecnico di Milano - dipartimento di Elettronica e Informazione
Copyright (c) 2008
Politecnico di Milano - dipartimento di Elettronica e Informazione
- Author:
- Giuliano Casale
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck()It verifies if the parameter is correct.It returns the parameter used to create the 1st exponential distribution used by the MMPP2 distribution.It returns the parameter used to create the 2nd exponential distribution used by the MMPP2 distribution.doubleIt returns the value of the parameter lambda0, the parameter lambda for the 1st exponential distribution created by the MMPP2 parameter.doubleIt returns the value of the parameter lambda1, the parameter lambda for the 2nd exponential distribution created by the MMPP2 parameter.doublegetMean()It returns the value of the mean of the MMPP2 distribution which is provided by the user or evaluated according to other data.doubleIt returns the value of the parameter sigma0, the parameter sigma for the 1st exponential distribution created by the MMPP2 parameter.doubleIt returns the value of the parameter sigma1, the parameter sigma for the 2nd exponential distribution created by the MMPP2 parameter.doublegetVar()It returns the value of the variance of the MMPP2 distribution which is provided by the user or evaluated according to other data.Methods inherited from class AbstractParameter
setMean
-
Constructor Details
-
MMPP2Par
public MMPP2Par(double lambda0, double lambda1, double sigma0, double sigma1) throws IncorrectDistributionParameterException It creates a new MMPP2 parameter based on the data provided by the user.- Parameters:
lambda0- double containing the value of lambda for the 1st exponential.lambda1- double containing the value of lambda for the 2st exponential.sigma0- double containing the value of sigma for the 1st exponential.sigma1- double containing the value of sigma for the 2st exponential.- Throws:
IncorrectDistributionParameterException- if sigma0 and sigma1 are not both greater than zero or if lambda0 and lambda1 are not both greater than zero.
-
MMPP2Par
public MMPP2Par(Double wlambda0, Double wlambda1, Double wsigma0, Double wsigma1) throws IncorrectDistributionParameterException
-
-
Method Details
-
check
public boolean check()It verifies if the parameter is correct. For the MMPP2 distribution, the parameter is right if both the sigma values are gtz and both the lambda values are gtz. -
getSigma0
public double getSigma0()It returns the value of the parameter sigma0, the parameter sigma for the 1st exponential distribution created by the MMPP2 parameter.- Returns:
- double with sigma0 the value of sigma for the 1st exponential distribution.
-
getSigma1
public double getSigma1()It returns the value of the parameter sigma1, the parameter sigma for the 2nd exponential distribution created by the MMPP2 parameter.- Returns:
- double with sigma1 the value of sigma for the 2nd exponential distribution.
-
getLambda0
public double getLambda0()It returns the value of the parameter lambda0, the parameter lambda for the 1st exponential distribution created by the MMPP2 parameter.- Returns:
- double with lambda0 the value of lambda for the 1st exponential distribution.
-
getLambda1
public double getLambda1()It returns the value of the parameter lambda1, the parameter lambda for the 2nd exponential distribution created by the MMPP2 parameter.- Returns:
- double with lambda1 the value of lambda for the 2nd exponential distribution.
-
getMean
public double getMean()It returns the value of the mean of the MMPP2 distribution which is provided by the user or evaluated according to other data.- Returns:
- double with the mean of the MMPP2 distribution.
-
getVar
public double getVar()It returns the value of the variance of the MMPP2 distribution which is provided by the user or evaluated according to other data.- Returns:
- double with the variance of the MMPP2 distribution.
-
getExpParam0
It returns the parameter used to create the 1st exponential distribution used by the MMPP2 distribution.- Returns:
- exponentialPar with expParam0 the parameter of the 1st exponential distribution.
-
getExpParam1
It returns the parameter used to create the 2nd exponential distribution used by the MMPP2 distribution.- Returns:
- exponentialPar with expParam1 the parameter of the 2nd exponential distribution.
-