File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -182,13 +182,15 @@ end
182182Return the weight of the row, calculated as:
183183
184184```math
185- $w (r) = \b egin{equation*}
185+ \b egin{aligned}
186+ w(r) = \b egin{equation*}
186187\b egin{cases}
187188 w_1 \t imes \f rac{x}{c}; & \t ext{ if r is not aligned} \\
188189 w_2 \t imes \f rac{n_s}{c}; & \t ext{ if r is aligned} \\
189190 w_3; & \t ext{ if r is full} \\
190191\e nd{cases}
191- \e nd{equation*}$
192+ \e nd{equation*}
193+ \e nd{aligned}
192194```
193195where n_s is the number of occurrences of the symbol s in the aligned row r,
194196and c is the total number of columns in the row. The value of x is equal to zero
@@ -346,14 +348,14 @@ function rowalignment(r, M)
346348 end
347349
348350 if score > gvalue
349- gvalue = score;
351+ gvalue = score;
350352 g = deepcopy (p);
351353 g. best = getposition (t, N[t, :], p. value);
352354 g. bestvalue = score;
353355 end
354356
355357
356- # display(p)
358+ # display(p)
357359
358360 end
359361 end
You can’t perform that action at this time.
0 commit comments