LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
sn_set_priority.m
1%{ @file sn_set_priority.m
2 % @brief Sets the priority for a class
3 %
4 % @author LINE Development Team
5%}
6
7%{
8 % @brief Sets the priority for a class
9 %
10 % @details
11 % Directly modifies the class priority in NetworkStruct.
12 %
13 % @par Syntax:
14 % @code
15 % sn = sn_set_priority(sn, classIdx, priority)
16 % @endcode
17 %
18 % @par Parameters:
19 % <table>
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
24 % </table>
25 %
26 % @par Returns:
27 % <table>
28 % <tr><th>Name<th>Description
29 % <tr><td>sn<td>Modified network structure
30 % </table>
31%}
32function sn = sn_set_priority(sn, classIdx, priority)
33
34sn.classprio(classIdx) = priority;
35
36end