1%{ @file sn_has_fractional_populations.m
2 % @brief Checks
if the network has fractional population values
4 % @author LINE Development Team
8 % @brief Checks
if the network has fractional population values
11 % Returns
true if any
class has a non-integer population value.
15 %
bool = sn_has_fractional_populations(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 any
class has fractional population
30function
bool = sn_has_fractional_populations(sn)
31% Checks
if the network has closed
classes with non-integer populations
32bool = any(sn.njobs ~= round(sn.njobs));