算法3:异常值更正算法 | ||||
| 输入: | |||
| 输出: | |||
1 | for all do | |||
2 |
|
| ||
3 |
| ; | ||
4 |
|
| ||
5 |
| for all do | ||
6 |
|
| success:=False | |
7 |
|
| for all in with descend order do | |
8 |
|
|
|
|
9 |
|
| if TRUSTED ( ) then | |
10 |
|
|
| success:=True |
11 |
|
|
|
|
12 |
|
|
| break |
13 |
|
| if not success then | |
14 |
|
|
|
|
15 | return |