LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
ph2hyper.m
1function [lambda,prob]=ph2hyper(PH)
2if (norm(PH{1}-diag(diag(PH{1})))>1e-10)
3 error('The PH distribution is not hyper-exponential')
4end
5lambda=diag(-PH{1})';
6prob=dtmc_solve(inv(-PH{1})*PH{2});
7end
8