2 % @brief Sojourn-time distribution of a Markov-modulated fluid queue
4 % @author LINE Development Team
8 % @brief Sojourn-time distribution of a fluid queue as an ME/PH representation.
11 % Thin LINE wrapper around FluidQueueSTD. Returns
the distribution of
the time
12 % a fluid drop spends in a Markov-modulated fluid queue with input rate matrix
13 % Rin and output (service) rate matrix Rout, modulated by generator Q, as a
14 % matrix-exponential (ME) or phase-type (PH) representation (alpha, A).
18 % [alpha,A] = mfq_sojourn(Q,Rin,Rout)
19 % [alpha,A] = mfq_sojourn(Q,Rin,Rout,Q0,transToPH)
24 % <tr><th>Name<th>Description
25 % <tr><td>Q<td>(N,N) generator of
the background Markov chain
26 % <tr><td>Rin<td>(N,N) diagonal input fluid-rate matrix
27 % <tr><td>Rout<td>(N,N) diagonal output (service) fluid-rate matrix
28 % <tr><td>Q0<td>(Optional) level-0 generator (default: Q)
29 % <tr><td>transToPH<td>(Optional) true to return a PH (else ME) representation
33 % alpha, A: ME/PH representation of the sojourn-time distribution.
35function [alpha,A] = mfq_sojourn(Q,Rin,Rout,Q0,transToPH)
36if ~exist('Q0','var'), Q0 = []; end
37if ~exist(
'transToPH',
'var'), transToPH =
false; end
38[alpha,A] = FluidQueueSTD(Q,Rin,Rout,Q0,transToPH);