Skip to main content
. 2022 Sep 23;24(10):1347. doi: 10.3390/e24101347
Algorithm 2 Outlier Detection
     Input
  •   •

    Xtrain         % Data to train the RBFN;

  •   •

    Xtest         % Data to test the RBFN;

  •   •

    n_outlier         % n° of outliers in training data;

  •   •

    θ         % Constant of outlier reduction;

     Output
  •   •

    COutlier         % Set of outliers.

1: procedure Outlier_detection(Xtrain,Xtest,n_outlier,θ)
2:
3:     for i1:size(Xtrain) do
4:         pottrei(i)=Pif(Xtrain(i))         % The IP.
5:     end for
6:
7:     pottrei=sort(pottrei,ascend)         % Sort in ascend order.
8:     δ=pottrei(θ·n_outlier)         % The threshold.
9:
10:     for i1:size(Xtest) do
11:         if Pif(Xtest(i))δ then
12:            Xtest(i)COutlier
13:         end if
14:     end for
15: return COutlier
16:
17: end procedure