Measurements.jl icon indicating copy to clipboard operation
Measurements.jl copied to clipboard

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

Open simeonschaub opened this issue 4 years ago • 2 comments

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.

simeonschaub avatar Jan 26 '20 21:01 simeonschaub

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 avatar Feb 02 '20 12:02 giordano

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

giordano avatar Feb 03 '20 00:02 giordano