1% cdf = CdfFromPH(alpha, A, x)
3% Returns the cummulative distribution function of a
4% continuous phase-type distribution.
8% alpha : matrix, 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 cdf will be computed at these points
19% cdf : column vector of doubles
20% The values of the cdf at the corresponding
"x" values
22function cdf = CdfFromPH (alpha, A, x)
24 if ~exist(
'prec',
'var')
28 global BuToolsCheckInput;
29 if isempty(BuToolsCheckInput)
30 BuToolsCheckInput = true;
33 if BuToolsCheckInput && ~CheckPHRepresentation(alpha, A)
34 error('CdfFromPH: Input isn''t a valid PH distribution!');
37 cdf = CdfFromME (alpha, A, x);