LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
matlab
src
solvers
MAM
mam_srcproc_is_renewal.m
1
function tf = mam_srcproc_is_renewal(sn, jst)
2
% MAM_SRCPROC_IS_RENEWAL True
if
station JST
's class-1 process is renewal.
3
%
4
% Reads the (D0,D1) pair out of sn.proc and applies MAM_IS_RENEWAL_MAP. When no
5
% usable pair is present the answer is FALSE, which is the conservative side:
6
% the caller uses this to decide whether a marginal-only closed form may be
7
% applied, and applying one to a process whose correlation structure could not
8
% be established is exactly the failure this guard exists to prevent.
9
%
10
% Copyright (c) 2012-2026, Imperial College London
11
% All rights reserved.
12
13
tf = false;
14
if jst < 1 || jst > numel(sn.proc)
15
return;
16
end
17
procj = sn.proc{jst};
18
if isempty(procj) || numel(procj) < 1
19
return;
20
end
21
pair = procj{1};
22
if ~iscell(pair) || numel(pair) < 2
23
return;
24
end
25
D0 = pair{1};
26
D1 = pair{2};
27
if isempty(D0) || isempty(D1) || size(D0, 1) ~= size(D1, 1)
28
return;
29
end
30
tf = mam_is_renewal_map(D0, D1);
31
end
Generated by
1.9.8