| Algorithm: The Algorithm for Complementary Filtering |
| //Complementary algorithm; Generate Date List, Status list; Get all the date points , and put them in the Date List; Get all the status values , and put them in the Status list; For j = 0 to Date List.num do Get the out to calculate ; If ; ; Calculate; End If. |