Skip to main content
. 2023 Sep 23;23(19):8041. doi: 10.3390/s23198041
Algorithm 2: Preprocessing data.
  Input: User channel data and RIS phase shift
  Output: Return filled missing values, labeled data, and normalized values.
// Step 1. Filling Missing Values:
  1:  For future of dataset: =fd to Fd    // fd is future of da-taset
  2:    For sample: = sd to Sd   // sd is sample of dataset
  3:      If fd is missing:
  4:        Replace the missing value by −6
  5:       end if
  6:    end for
  7:  end for
// Step 2. Data Labeling:
  1: For sample: = sd to Sd
  2:    Label the SNR to LQI based on the above range
  3:    Assign the corresponding label to the sample
  4:  end for
// Step 3. Data Normalization:
  1:  For the future of the dataset: =fd to Fd
  2:      For sample: = sd to Sd
  3:        Normalize the value of the feature using the (16)
  4:       end for
  5:  end for