aewallin / allantools

Allan deviation and related time & frequency statistics library in Python
GNU Lesser General Public License v3.0
226 stars 77 forks source link

Fix a precision issue which occurs with frequency data if we deal wit… #85

Closed EBenkler closed 5 years ago

EBenkler commented 5 years ago

…h small frequency fluctuations on a large mean frequency. Because frequency data is always converted to phase data using frequency2phase helper function first, the digits containing the info on the small frequency fluctuations get insignificant when using cumsum, because the sum can become much larger than these small fluctuations. As a remedy, subtract frequency average before conversion to phase data using cumsum.

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.02%) to 83.551% when pulling 585852d659dcb4a23664ee974a028421da85c1e7 on EBenkler:master into 77e60ab4431c0dbed82f4ae2cd7c40c59bd69d9e on aewallin:master.

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.02%) to 83.551% when pulling 585852d659dcb4a23664ee974a028421da85c1e7 on EBenkler:master into 77e60ab4431c0dbed82f4ae2cd7c40c59bd69d9e on aewallin:master.