1function
bool = sn_has_joint_dependence(sn)
2% BOOL = SN_HAS_JOINT_DEPENDENCE(SN)
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.
8% Copyright (c) 2012-2026, Imperial College London
11hasLjd = ~isempty(sn.ljdscaling) && any(~cellfun(@isempty, sn.ljdscaling));
12hasLjcd = ~isempty(sn.ljcdscaling) && any(~cellfun(@isempty, sn.ljcdscaling));
13bool = hasLjd || hasLjcd;