1%{ @file sn_has_class_switching.m
2 % @brief Checks
if the network has
class switching
4 % @author LINE Development Team
8 % @brief Checks
if the network has
class switching
11 % Returns
true if the network has
class switching, indicated by the number
12 % of
classes differing from the number of chains.
16 %
bool = sn_has_class_switching(sn)
21 % <tr><th>Name<th>Description
22 % <tr><td>sn<td>Network structure
27 % <tr><th>Name<th>Description
28 % <tr><td>bool<td>True
if number of
classes differs from number of chains
31function
bool = sn_has_class_switching(sn)
33bool = sn.nclasses ~= sn.nchains;