Skip to main content
. 2024 Dec 15;24(24):8006. doi: 10.3390/s24248006
Algorithm 2: Time-Window Process
Data loading: {Inputs, Targets} → {Model’s Forecast, Observations}
Data normalization: {Inputs, Targets} → [−1,1]
Determination of the Training and Testing data sets Concerns the training process of the dual filter (KF and RBF) and the evaluation of the method
Determine the time window’s maximum number: Max_tw=Time Window1
Set the appropriate matrices and vectors for storing the outcomes
Determine the set of penalty parameters: Penalty Parameter λ  [106,102]
Determine the set of Clusters for the RBF network: Cluster → [10:step:70]
Determine the set of activation functions: Activation function → {Gaussian, Multiquadric}
for qq=0,,Max_tw
Tr →(1+qq):Training Data+qq Training data for the RBFNN.% One step in time.
  Run the Algorithm 1 Obtain the optimal RBF structure. Centroids, widths, external weights, activation fun.
Tr1Trend+1:Trend+TestingData Testing data for the improved forecasts and the evaluation.
  Denormalize the data Improved forecasts, corresponding model forecasts, and recorded observations.
  Assess the method based on Tr1 and store the results Bias, Absolute Bias, Rmse, and Ns indices.
End
Save results from each time window