Skip to content
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

add Statistics.mean and Statistics.std as aliases for value and uncertainty #63

Open
simeonschaub opened this issue Jan 26, 2020 · 2 comments

Comments

@simeonschaub
Copy link
Contributor

My main motivation behind this is that MonteCarloMeasurements.jl already overloads these, so I believe this would make for better interchangeability between both approaches. Personally, I also find them more convenient to write than value and uncertainty, so it also might be worth then exporting them.

@giordano
Copy link
Member

giordano commented Feb 2, 2020

This is interesting, but my fear is that one may accidentally strip the uncertainty out in generic code that doesn't know about Measurements, as mean would have a different semantic meaning for, say, Float64 and Measurement. Thus, I'm not really convinced this is a good idea.

@giordano
Copy link
Member

giordano commented Feb 3, 2020

Given how a silent conversion to Float64 caused so many troubles in #64 I'm more and more inclined to not do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants