To smoothen the EEG signals from the EDF files, a difference equation is applied such as:
where x is the input signal, y is the output signal, b and a are coefficients:
b : [0.028, 0.053, 0.071, 0.053, 0.028]
a : [1.000, -2.026, 2.148, -1.159, 0.279]
This is using the Javascript EDF file decoder made for the same project.