-
Notifications
You must be signed in to change notification settings - Fork 1
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
Compile-time precision set, Pi->PI, inverse-var weighed average & reducer #20
Conversation
principled control of precision. While maybe obvious, the "principle" here is just that uncertainties themselves have very limited credible precision. This is especially salient when considering values derived from propagated uncertainty, such as "sigma distances" where said sigma parameter is taken to roughly correspond to unit Gaussian/Normal probability scales. That's just a fairly rough correspondence, often papered over with both generous and heuristic bounds like "5 sigma" to decide if results are to be believed.
`-d:nimFatOldSystem` non-duplicative).
the error; `cligen/strUt.fmtUncertain` rounds value to same decimal). 810bdfb changed the default here from 2 to 3, but some users might even want 1.
users do `nim c --hint:Name:on --styleCheck=error --styleCheck=usages`.
with a URI justifying the weights.
@@ -90,7 +90,7 @@ logic to types other than =float=! | |||
Feel free to perform error propagation on =unchained= types for | |||
example: | |||
#+begin_src nim | |||
import unchained, meausuremancer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of those funny typos a QWERTY user is going to wonder how I managed it. 🤣
measuremancer.nim
Outdated
## Average however many uncertain values in `x` into one overall estimate. | ||
## `x` can also be any `openArray[Measurement[F]]`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we said in private discussion, maybe add another sentence that this computes a weighted mean.
Thanks a lot! |
This PR does 3 things:
Allow compile-time setting of printing precision (number of places for
the error;
cligen/strUt.fmtUncertain
rounds value to same decimal).Pi
->PI
because that is howstd/math.nim
spells it. This letsusers do
nim c --hint:Name:on --styleCheck=error --styleCheck=usages
.Add inverse-var weighted averaging operator & varargs/openArray reducer
with a URI justifying the weights.