|
Algorithm 2 Algorithm for PAC/PVC Detection on Non-AF Windows |
|
Input: degrees of included angle for ‘1-2-3’ and ‘6-4-5’ pattern, respectively. |
| degrees of slope angle for ‘2-4’,‘4-2’,‘1-2’,‘2-3’,‘6-4’,‘4-5’ pattern, |
| respectively |
| number of ‘1-2-3’,‘6-4-5’,‘2-4’,‘4-2’,‘1-2’,‘2-3’,‘6-4’‘4-5’ pattern, |
| respectively. |
| ratio of zero quadrants |
| number of points outside cross demarcation |
|
Output: type as NSR, AF, or PAC/PVC. |
| 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: AF. |
| 13: end if
|
| 14: else
|
| 15: Calculate and , the standard deviation of and , respectively. |
| 16: if
&& &&
then
|
| 17: PAC/PVC. |
| 18: else
|
| 19; Calculate , the standard deviation of , , , and , respectively. |
| 20: if
then
|
| 21: Set and . |
| 22: end if
|
| 23: if
then
|
| 24: Set and . |
| 25: end if
|
| 26: if
then
|
| 27: PAC/PVC. |
| 28: else
|
| 29: if
then
|
| 30: AF. |
| 31: else
|
| 32: NSR. |
| 33: end if
|
| 34: end if
|
| 35: end if
|
| 36: end if
|
| 37: return
|