LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
sn_has_joint_dependence.m
1function bool = sn_has_joint_dependence(sn)
2% BOOL = SN_HAS_JOINT_DEPENDENCE(SN)
3%
4% Checks if the network has joint-dependent service rates
5% This includes both LJD (Limited Joint Dependence) and LJCD
6% (Limited Joint Class Dependence) scaling.
7
8% Copyright (c) 2012-2026, Imperial College London
9% All rights reserved.
10
11hasLjd = ~isempty(sn.ljdscaling) && any(~cellfun(@isempty, sn.ljdscaling));
12hasLjcd = ~isempty(sn.ljcdscaling) && any(~cellfun(@isempty, sn.ljcdscaling));
13bool = hasLjd || hasLjcd;
14end