1% pdf = PdfFromPH(alpha, A, x, prec)
3% Returns the probability density function of a continuous
4% phase-type distribution.
8% alpha : vector, shape (1,M)
9% The initial probability vector of the phase-type
11% A : matrix, shape (M,M)
12% The transient generator matrix of the phase-type
14% x : vector of doubles
15% The density function will be computed at these points
16% prec : double, optional
17% Numerical precision to check
if the input ME
18% distribution
is valid. The
default value
is 1e-14.
22% pdf : column vector of doubles
23% The values of the density function at the
24% corresponding
"x" values
26function pdf = PdfFromPH (alpha, A, x)
28 global BuToolsCheckInput;
29 if isempty(BuToolsCheckInput)
30 BuToolsCheckInput =
true;
33 if BuToolsCheckInput && ~CheckPHRepresentation(alpha, A)
34 error(
'PdfFromPH: Input isn''t a valid PH distribution!');
37 pdf = PdfFromME (alpha, A, x);