Research Article
Variation-Oriented Data Filtering for Improvement in Model Complexity of Air Pollutant Prediction Model
int ; //initialize the beginning of the segment | int ; //initialize the end of the segment | select (, ); //select the data at the first day of the first segment | for to do //loop from 2 to , i.e., the end of the series | if and (2) is true { | //if the th day and the th day are successive days and the variation of | the SO2 levels in these two days is equal to or greater than | select (, ) //select the data from the th day | ; //change the end of the segment to the beginning of the segment | ++; //change the end of the segment to the next day | } | elseif (2) is true {//if the th day and the th day are not on successive days but | their variation is equal to or greater than | select (, ) //select data at the th day | select (, ) //select data at the th day | ; //set the beginning of the next segment | ++; } //change the end of the segment to the next day | else ++; } //discard the data point and move to next segment |
|