1function lst = aoi_lst_erlang(k, mu)
2%AOI_LST_ERLANG Laplace-Stieltjes transform
for Erlang distribution
4% lst = aoi_lst_erlang(k, mu)
6% Returns a function handle
for the LST of an Erlang-k distribution
7% with rate parameter mu.
10% k (integer): Shape parameter (number of phases)
11% mu (double): Rate parameter per phase (mean = k/mu)
14% lst (function_handle): LST function @(s) (mu/(mu+s))^k
16% The LST of Erlang(k, mu)
is: H*(s) = (mu / (mu + s))^k
18% See also: aoi_lst_exp, aoi_lst_det, aoi_lst_ph
20% Copyright (c) 2012-2026, Imperial College London
23if k < 1 || k ~= round(k)
24 line_error(mfilename,
'Shape k must be a positive integer');
27 line_error(mfilename,
'Rate mu must be positive');
30lst = @(s) (mu ./ (mu + s)).^k;