Code and documentation for the first machine learning focused mock data challenge hosted by the Albert-Einstein-Institut Hannover and the Friedrich-Schiller Universität Jena.
Apache License 2.0
39
stars
16
forks
source link
Implemented a workaround to assert the correct sample-rate is correct. #15
This is a workaround to solve the issue #9. As described in the issue the problem is caused by numerical imprecisions. To work around the problem, the condition 1 / (1 / (duration + 256.)) == duration + 256. is checked. If it evaluates to False, we pad the duration by 1 second and check again. We do this until the condition evaluates to True. Afterwards the noise is generated and the padded data is removed.
This is a workaround to solve the issue #9. As described in the issue the problem is caused by numerical imprecisions. To work around the problem, the condition
1 / (1 / (duration + 256.)) == duration + 256.
is checked. If it evaluates toFalse
, we pad the duration by 1 second and check again. We do this until the condition evaluates toTrue
. Afterwards the noise is generated and the padded data is removed.