1%{ @file sn_is_open_model.m
2 % @brief Checks
if the network
is an open model
4 % @author LINE Development Team
8 % @brief Checks
if the network
is an open model
11 % Returns
true if all
classes in the network have infinite population.
15 %
bool = sn_is_open_model(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 all
classes have infinite population
30function
bool = sn_is_open_model(sn)
31bool = all(isinf(sn.njobs));