LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
aoi_lst_erlang.m
1function lst = aoi_lst_erlang(k, mu)
2%AOI_LST_ERLANG Laplace-Stieltjes transform for Erlang distribution
3%
4% lst = aoi_lst_erlang(k, mu)
5%
6% Returns a function handle for the LST of an Erlang-k distribution
7% with rate parameter mu.
8%
9% Parameters:
10% k (integer): Shape parameter (number of phases)
11% mu (double): Rate parameter per phase (mean = k/mu)
12%
13% Returns:
14% lst (function_handle): LST function @(s) (mu/(mu+s))^k
15%
16% The LST of Erlang(k, mu) is: H*(s) = (mu / (mu + s))^k
17%
18% See also: aoi_lst_exp, aoi_lst_det, aoi_lst_ph
19
20% Copyright (c) 2012-2026, Imperial College London
21% All rights reserved.
22
23if k < 1 || k ~= round(k)
24 line_error(mfilename, 'Shape k must be a positive integer');
25end
26if mu <= 0
27 line_error(mfilename, 'Rate mu must be positive');
28end
29
30lst = @(s) (mu ./ (mu + s)).^k;
31
32end