-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rounding dev #32
Comments
This was a conscious omission in Line 56 in ac1456d
|
I think rounding to 3 decimal places should be done as it's stated in
https://github.com/actigraph/GT3X-File-Format/blob/main/LogRecords/Activity.md#scaling-activity-values
and
https://github.com/actigraph/GT3X-File-Format/blob/main/LogRecords/Activity2.md#scaling-activity-values
and specifically uses rounding away from zero.
https://github.com/actigraph/GT3X-File-Format/blame/main/LogRecords/Activity.md#L226
My only concern is that I'd probably think to just use `round`, but that's
not the same rounding as ActiLife. And also shows the data really only has
3 significant digits.
Best,
John
…On Tue, Jan 26, 2021 at 3:36 PM paulhibbing ***@***.***> wrote:
This was a conscious omission in dev, mostly because the legacy approach
to rounding seemed ridiculously inefficient (see mid_round below). My
main reason for rounding was to ensure I could replicate output from
ActiLife. With dev, I didn't see a lot of value in rounding things off
(although I would be surprised if the devices are precise past 3 digits). I
still check dev against legacy and ActiLife when troubleshooting issues,
but I've become comfortable with making those comparisons with a defined
tolerance of 0.0015 g (see also PAutilities::test_errors
<https://github.com/paulhibbing/PAutilities/blob/master/R/test_errors.R>).
Are there other considerations you recommend?
https://github.com/paulhibbing/AGread/blob/ac1456d939b68857cf7bfc8b46ec79838cb412b2/src/helpers.cpp#L56
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIGPLTFNKRYUQVYWCFIKQTS34RVLANCNFSM4WT77YLA>
.
|
Dev should have rounded values like legacy to 3 digits.
Created on 2021-01-26 by the reprex package (v0.3.0.9001)
Session info
The text was updated successfully, but these errors were encountered: