2 % @brief Computes the rate matrix R
using logarithmic reduction
4 % @author LINE Development Team
8 % @brief Computes QBD rate matrix R via logarithmic reduction
11 % This function computes the rate matrix R
for a Quasi-Birth-Death (QBD)
12 % process
using the logarithmic reduction method.
16 % R = qbd_R_logred(B, L, F)
17 % R = qbd_R_logred(B, L, F, iter_max)
22 % <tr><th>Name<th>Description
23 % <tr><td>B<td>Backward transition block A_(-1)
24 % <tr><td>L<td>Local transition block A_0
25 % <tr><td>F<td>Forward transition block A_1
26 % <tr><td>iter_max<td>(Optional) Maximum iterations (
default: 100000)
31 % <tr><th>Name<th>Description
32 % <tr><td>R<td>Rate matrix R
35function R=qbd_R_logred(B,L,F,iter_max)
36% Logarithmic reduction method
45 D = iLF*iLB + iLB*iLF;
46 iLF = inv(eye(r)-D) *iLF*iLF;
47 iLB = inv(eye(r)-D) *iLB*iLB;
50 if norm(ones(r,1)-S*ones(r,1) ,1) <= 1e-12