Skip to main content
. 2021 Aug 5;21(16):5288. doi: 10.3390/s21165288
Algorithm 8: Generation of synthetic data

Step 1:Initialize the number of measurements K and the radius of sphere r

Step 2: Calculate Golden Ratio: φ=1+52

Step 3: for each k=1,2,,K do:

        θ=2πkφ

        ϕ=arccos12(k0.5)K

        mk=mx,my,mz=rcosθsinϕ,rsinθsinϕ,rcosϕ

Step 4: Pick the scaling parameter, α, the perturbation matrix, E

        and the perturbation vector, e.

Step 5: Calculate T and h according to (66).

Step 6: Generate a sequence of white noise: εN(0,σ2)

Step 7: Calculate the measurement vectors: yk=Tmk+h+εk (2)