Algorithm 1: Multi-stage Bandwidth Detection. |
Input Samples and significance level ; |
Output Detected bandwidth K or None; |
1: for do |
2: Calculate test statistic according to (13); |
3: Calculate the p-value of the test according to (15); |
4: if then |
5: Let bandwidth and stop; |
6: else |
7: ; |
8: end if |
9: end for |