1%{ @file sn_has_single_class.m
2 % @brief Checks
if the network has a single
class
4 % @author LINE Development Team
8 % @brief Checks
if the network has a single
class
11 % Returns
true if the network has exactly one job
class.
15 %
bool = sn_has_single_class(sn)
20 % <tr><th>Name<th>Description
21 % <tr><td>sn<td>Network structure
26 % <tr><th>Name<th>Description
27 % <tr><td>bool<td>True
if number of
classes equals one
30function
bool = sn_has_single_class(sn)
32bool = sn.nclasses == 1;