|
Algorithm 1 Algorithm for PAC/PVC Detection on AF Windows |
|
Input: degrees of included angle for ‘1-2-3’ pattern |
| degrees of included angle for ‘6-4-5’ pattern |
| number of ‘1-2-3’ pattern |
| number of ‘6-4-5’ pattern |
| ratio of zero quadrants. |
|
Output: type as NSR, PAC/PVC, or AF. |
| 1: if
then
|
| 2: Calculate and , the standard deviation of and , respectively. |
| 3: if
then
|
| 4: Set . |
| 5: end if
|
| 6: if
then
|
| 7: Set . |
| 8: end if
|
| 9: if
&&
then
|
| 10: PAC/PVC. |
| 11: else
|
| 12: if
then
|
| 13: AF. |
| 14: else
|
| 15: NSR. |
| 16: end if
|
| 17: end if
|
| 18: else
|
| 19: if
then
|
| 20: AF. |
| 21: else
|
| 22: NSR. |
| 23: end if
|
| 24: end if
|
| 25: return
|