LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
mam_srcproc_is_renewal.m
1function 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
13tf = false;
14if jst < 1 || jst > numel(sn.proc)
15 return;
16end
17procj = sn.proc{jst};
18if isempty(procj) || numel(procj) < 1
19 return;
20end
21pair = procj{1};
22if ~iscell(pair) || numel(pair) < 2
23 return;
24end
25D0 = pair{1};
26D1 = pair{2};
27if isempty(D0) || isempty(D1) || size(D0, 1) ~= size(D1, 1)
28 return;
29end
30tf = mam_is_renewal_map(D0, D1);
31end