Input: The current window size ; The fist and last sampling interval , at current window |
Output: The new window size |
Initialize the optimal number of sampling points: |
Initialize the maximal QoP: |
for each do |
Calculate the current QoP: |
if then |
|
Count the number of sampling: |
if and is sampling point then |
; |
Update the new window size: ; |
return The new window size |