| Algorithm 1 Scale-Adjusting Algorithm. | |
| 1: | INPUT |
| 2: | , ,, , ; |
| 3: | |
| 4: | OUTPUT |
| 5: | , ,; |
| 6: | |
| 7: | ifthen |
| 8: | if then |
| 9: | Let ; |
| 10: | end if |
| 11: | Let ; |
| 12: | Calculate ; |
| 13: | else |
| 14: | if then |
| 15: | if then |
| 16: | Let ; |
| 17: | end if |
| 18: | Let ; |
| 19: | Calculate ; |
| 20: | end if |
| 21: | end if |