In order to convert to EDF, we need to compute the best scaling factor for the
data. The MEF header provide maximum values within the entire dataset but these
are likely set by artifact.
When we convert the data to be represented by less bytes (i.e. EDF), we need to
scale the data based such that the data is stored with the best accuracy and
clipped artifacts. We can only assess this number by looking at the entire
dataset which is not possible when we try to stream into an EDF file.
Therefore, we should calculate the number when we convert to MEF and store this
number in the DB or in the MEF header. Javier has an algorithm to get a valid
cutoff for the data (used in the DCN code).
Original issue reported on code.google.com by JBWagenaar on 23 May 2013 at 6:14
Original issue reported on code.google.com by
JBWagenaar
on 23 May 2013 at 6:14