Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data preprocessing: question #24

Open
neurohazardous opened this issue Feb 24, 2020 · 1 comment
Open

Data preprocessing: question #24

neurohazardous opened this issue Feb 24, 2020 · 1 comment

Comments

@neurohazardous
Copy link

Thanks for sharing this data, this is great! I have a quick question: is the data shared here raw? Has it been preprocessed in any way?

Thanks for your time!

@Hirokazu-Narui
Copy link
Collaborator

Sorry for the late reply.
The amplitude are raw data.
But phase are calibrated using below code.

function calibrated_phase2 = phase_calibration(phasedata)
    calibrated_phase(1) = phasedata(1);
    difference = 0;
    for i = 2:30
        temp = phasedata(i) - phasedata(i-1);
        if abs(temp) > pi
            difference = difference + 1*sign(temp);
        end
        calibrated_phase(i) = phasedata(i) - difference * 2 * pi;
    end
    
    k = (calibrated_phase(30) - calibrated_phase(1)) / (30 - 1);
    b = mean(calibrated_phase);
    
    for i = 1:30
        calibrated_phase2(i) = calibrated_phase(i) - k * i - b;
    end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants