LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
PdfFromPH.m
1% pdf = PdfFromPH(alpha, A, x, prec)
2%
3% Returns the probability density function of a continuous
4% phase-type distribution.
5%
6% Parameters
7% ----------
8% alpha : vector, shape (1,M)
9% The initial probability vector of the phase-type
10% distribution.
11% A : matrix, shape (M,M)
12% The transient generator matrix of the phase-type
13% distribution.
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.
19%
20% Returns
21% -------
22% pdf : column vector of doubles
23% The values of the density function at the
24% corresponding "x" values
25
26function pdf = PdfFromPH (alpha, A, x)
27
28 global BuToolsCheckInput;
29 if isempty(BuToolsCheckInput)
30 BuToolsCheckInput = true;
31 end
32
33 if BuToolsCheckInput && ~CheckPHRepresentation(alpha, A)
34 error('PdfFromPH: Input isn''t a valid PH distribution!');
35 end
36
37 pdf = PdfFromME (alpha, A, x);
38end