Timeline for Mean and Variance for Math Library
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 6, 2021 at 17:58 | comment | added | Ben Voigt |
Even calculating the mean in the traditional way (here using std::accumulate ) may have numerical instability issues., since sum(values[0 .. N-2]) greatly differs in magnitude from values[N-1]`. It may be better to perform summation as a balanced binary tree rather than a list.
|
|
Aug 6, 2021 at 14:51 | history | edited | Toby Speight | CC BY-SA 4.0 |
std::views is an alias of std::ranges::views, so we can shorten identifiers (and avoid hscroll?)
|
Aug 6, 2021 at 8:14 | history | answered | Toby Speight | CC BY-SA 4.0 |