1% pmf = PmfFromDPH(alpha, A, x, prec)
3% Returns the probability mass function of a discrete
4% phase-type distribution.
8% alpha : vector, shape (1,M)
9% The initial probability vector of the discrete phase-
10% type distribution. The sum of the entries of pi0
is
12% A : matrix, shape (M,M)
13% The transient generator matrix of the discrete phase-
15% x : vector of non-negative integers
16% The density function will be computed at these points
17% prec : double, optional
18% Numerical precision to check
if the input DPH
19% distribution
is valid. The
default value
is 1e-14.
23% pmf : column vector of doubles
24% The probabilities that the discrete phase type
25% distributed random variable takes the corresponding
29function pmf = PmfFromDPH (alpha, A, x)
31 global BuToolsCheckInput;
32 if isempty(BuToolsCheckInput)
33 BuToolsCheckInput =
true;
36 if BuToolsCheckInput && ~CheckDPHRepresentation(alpha, A)
37 error(
'PmfFromDPH: Input isn''t a valid DPH distribution!');
40 pmf = PmfFromMG (alpha, A, x);