| Algorithm 5 Jump detection algorithm. | |
| 1: procedure DetectJumps(WindSpeeds) | ▹ Look for jumps in running std dev. |
| 2: PrevStd = Std(WindSpeeds(k − 1)); | ▹ Look for previous std. dev. |
| 3: DiffStd = PrevStd-Std(WindSpeeds) | ▹ Difference between std. deviations. |
| 4: AcumDiffStd(count + 1) = DisffStd | |
| 5: if DiffStd ≥ thres then | ▹ If error is bigger than threshold. |
| 6: CommHandler.Alert = JumpDetected | |
| 7: JumpSize = Mean(AcumDiffStd) | ▹ Estimate the size of the jump. |
| 8: end if | |
| 9: end procedure | |