LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
map_pdf.m
1function f=map_pdf(MAP,tset)
2% MAP_PDF computes the probability density function (PDF) of a MAP at the point
3% tset
4% MAP: Markovian arrival process to evaluate
5% tset: time-point to evaluate the PDF of the MAP
6%
7% Copyright (c) 2012-2014, Imperial College London
8% All rights reserved.
9
10
11pi=map_pie(MAP);
12f=[];
13if issym(MAP{1})
14 f=sym(f);
15end
16e=ones(length(MAP{2}),1);
17if year(matlabRelease.Date)>2023 || strcmpi(matlabRelease.Release,"R2023b")
18 f = expmv(MAP{1}',pi',tset)'*(-MAP{1})*e;
19 f = f';
20else
21 for t=tset
22 f(end+1)=pi*(expm(MAP{1}*t)*(-MAP{1}))*e;
23 end
24end
25end
26