|
| ||
| Algorithm 2 Weighted Average of FOs | ||
|
| ||
| Input: FOs to average; weights of the FOs; the current FO ωmp | ||
| Output: Averaged FO ω̄ | ||
| 1: | ω̄ ← 0 | |
| 2: | for r = 1 : R do | |
| 3: | if then | |
| 4: | ωr ← −ωr | |
| 5: | end if | |
| 6: | ω̄ ← ω̄ + γrωr | |
| 7: | end for | |
| 8: |
return
|
|
|
| ||
|
| ||
| Algorithm 2 Weighted Average of FOs | ||
|
| ||
| Input: FOs to average; weights of the FOs; the current FO ωmp | ||
| Output: Averaged FO ω̄ | ||
| 1: | ω̄ ← 0 | |
| 2: | for r = 1 : R do | |
| 3: | if then | |
| 4: | ωr ← −ωr | |
| 5: | end if | |
| 6: | ω̄ ← ω̄ + γrωr | |
| 7: | end for | |
| 8: |
return
|
|
|
| ||