beacon-biosignals / EDF.jl

Read and write EDF files in Julia
MIT License
18 stars 5 forks source link

Add a function for decoding physical signals #14

Closed ararslan closed 4 years ago

ararslan commented 4 years ago

EDF stores its signals encoded as two-byte integers (Int16). We can perform a simple reverse transformation to recover the physical signal. The package now exposes that as a decode function that returns a vector when given a Signal. The formula used for the reverse transformation is the same as in Pixpipe's JavaScript EDF reader.

Interestingly, we only agree with MNE up to two decimal places of precision; I would have expected better than that, but then again I can never be sure with Python.

Closes #10.