This PR has as goal to recreate the AUTO method for MEG trial rejection present in ArtifactScanTool.
This automatic method is based on thresholding the peak-to-peak amplitude (p2p) and the gradient of the signal using N times the median absolute deviations (MAD) from the median of their respective distributions across segments (for continuous files) or trials (for imported data).
Done with @aiwiesman
[x] Port as Brainstorm process
[x] Check and compare results between implementations
This PR has as goal to recreate the AUTO method for MEG trial rejection present in ArtifactScanTool.
This automatic method is based on thresholding the peak-to-peak amplitude (p2p) and the gradient of the signal using
N
times the median absolute deviations (MAD) from the median of their respective distributions across segments (for continuous files) or trials (for imported data).Done with @aiwiesman