1%{ @file sn_set_priority.m
2 % @brief Sets the priority
for a
class
4 % @author LINE Development Team
8 % @brief Sets the priority
for a
class
11 % Directly modifies the
class priority in NetworkStruct.
15 % sn = sn_set_priority(sn, classIdx, priority)
20 % <tr><th>Name<th>Description
21 % <tr><td>sn<td>Network structure
22 % <tr><td>classIdx<td>Class index (1-based)
23 % <tr><td>priority<td>Priority value
28 % <tr><th>Name<th>Description
29 % <tr><td>sn<td>Modified network structure
32function sn = sn_set_priority(sn, classIdx, priority)
34sn.classprio(classIdx) = priority;