Repository navigation
mp-units/latest/blog/2026/07/24/introducing-logarithmic-quantities-and-units/ #845
Replies: 1 comment 1 reply
|
I would probably have to re-read this a couple of times to really internalise the design decisions discussed in this blogpost. I have a comment from a statistics/information theory point of view. In computational statistics, the notion of log-likelyhood is quite common: it may be quicker to calculate (when dealing with gaussian distributions at least) and the regular likelyhood may very quickly truncate to zero. Another reason to work with the log-domain is that we can in some places replace multiplications and divisions with additions and subtractions. I also wonder about the section with 'sqrt() |
Uh oh!
There was an error while loading. Please reload this page.
mp-units/latest/blog/2026/07/24/introducing-logarithmic-quantities-and-units/
The quantities and units library for C++
https://mpusz.github.io/mp-units/latest/blog/2026/07/24/introducing-logarithmic-quantities-and-units/
All reactions