michaelgelliot / FuzzyDroplets

Fuzzy machine learning for classification of droplet digital PCR data
GNU General Public License v3.0
0 stars 0 forks source link

rounding errors when saving data #13

Closed michaelgelliot closed 7 months ago

michaelgelliot commented 7 months ago

When exporting assignments, the values for channel 1 and channel 2 can be rounded. For example, the input data for a point might be

10000.013, 17000.489

During export, this might be rounded to:

10000.01, 17000.5

This is simply due to the behaviour of std::string_stream. While it doesn't actually matter as far as data analysis is concerned, it is probably wise to correct it. Perhaps record the maximum number of decimal places while reading data, and set string_stream to use it

michaelgelliot commented 7 months ago

Fixed in main