1%{ @file mfq_fluflu_sojourn.m
2 % @brief Sojourn-time distribution of a fluid/fluid queue
4 % @author LINE Development Team
8 % @brief Sojourn-time distribution of a fluid queue with fluid-modulated service.
11 % Thin LINE wrapper around FluFluSTD. Returns
the sojourn-time distribution of
12 % a fluid queue in which both
the arrival and
the service processes are
13 % Markov-modulated fluid flows, as a matrix-exponential (ME) or phase-type
14 % (PH) representation (alpha, A).
18 % [alpha,A] = mfq_fluflu_sojourn(Qin,Rin,Qout,Rout,srv0stop)
19 % [alpha,A] = mfq_fluflu_sojourn(Qin,Rin,Qout,Rout,srv0stop,transToPH)
24 % <tr><th>Name<th>Description
25 % <tr><td>Qin<td>(Na,Na) generator of
the arrival-modulating chain
26 % <tr><td>Rin<td>(Na,Na) diagonal arrival fluid-rate matrix
27 % <tr><td>Qout<td>(Ns,Ns) generator of
the service-modulating chain
28 % <tr><td>Rout<td>(Ns,Ns) diagonal service fluid-rate matrix
29 % <tr><td>srv0stop<td>true if service stops when
the server fluid level hits zero
30 % <tr><td>transToPH<td>(Optional) true to return a PH (else ME) representation
34 % alpha, A: ME/PH representation of the sojourn-time distribution.
36function [alpha,A] = mfq_fluflu_sojourn(Qin,Rin,Qout,Rout,srv0stop,transToPH)
37if ~exist('transToPH','var'), transToPH = false; end
38[alpha,A] = FluFluSTD(Qin,Rin,Qout,Rout,srv0stop,transToPH);