Skip to main content
. 2022 Oct 13;22(20):7783. doi: 10.3390/s22207783
Pseudocode for Preprocessing Methods
Calculate the Cyclic Mean
        Input: Mixed Signal Sequences.
        Step 1: Settting the Value of alpha and attach,alpha = 2*pi/2000; It can be adjusted according to the desired noise-suppression effect and calculation time.
        Step 2: Setting length of the cyclic sequence,length = ceil(2*pi/alpha) + attach;
        Step 3: Construct the cyclic mean sequence space m
                for k = 0:length
                m(k + 1) = mean(signal.*exp(-1i*k*alpha*t));
Calculate the IFFT of the Cyclic mean series
        Input: The Cyclic mean sequence of mixed-signal sequences.
        IFFT_signal = ifft(m_ga_add,n);
        This step should adjust the IFFT sequence length parameter n to reduce the CWD image’s computation time.
Run the CWD algorithm
        Input: Time domain signal sequence after IFFT operation.
        cwd_signal = tfrcw(IFFT_signal);
        CWD_FIG = image(cwd_signal);
Output: Mixed signal CWD image.