LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
sn_has_class_switching.m
1%{ @file sn_has_class_switching.m
2 % @brief Checks if the network has class switching
3 %
4 % @author LINE Development Team
5%}
6
7%{
8 % @brief Checks if the network has class switching
9 %
10 % @details
11 % Returns true if the network has class switching, indicated by the number
12 % of classes differing from the number of chains.
13 %
14 % @par Syntax:
15 % @code
16 % bool = sn_has_class_switching(sn)
17 % @endcode
18 %
19 % @par Parameters:
20 % <table>
21 % <tr><th>Name<th>Description
22 % <tr><td>sn<td>Network structure
23 % </table>
24 %
25 % @par Returns:
26 % <table>
27 % <tr><th>Name<th>Description
28 % <tr><td>bool<td>True if number of classes differs from number of chains
29 % </table>
30%}
31function bool = sn_has_class_switching(sn)
32
33bool = sn.nclasses ~= sn.nchains;
34end