Skip to main content
. 2020 Aug 14;20(16):4555. doi: 10.3390/s20164555
Algorithm 1 Creating Synthetic Features.
 Input: N (subjects), K (features), ICCTarget
 Output: 3-dimensional (N×K×2) feature matrix Xijs with desired correlation structure
 for j=1,K
  for i=1,N
   Set Xij1=Z where Z is a random standard normal deviate.
   Set Xij2=Xij1
 for j=1,K
  for i=1,N
   for s=1,2
    Set Xijs=Xijs+W; where W is a random normal deviate with mean = 0 and
    standard deviation = (1ICCTarget)/ICCTarget
 For each feature j, treat Xijs as a single vector of length N·S and apply a z-score transform
 to ensure mean = 0 and standard deviation = 1