WIP: Memory for 2D histogram allocated only on demand
Cuntigious memory allocation for large 2D/3D histograms can lead to issues. Proposing two main changes to the 2D and 3D histogram class:
- allocate memory as
std::vector<std::vector<double>>
essentially as an array of pointers to arrays for each y-bin - allocate memory only on demand (as per y-bin)
Todo:
-
3d histogram -
rework how mean/std.dev. are calculated so isFilled
array is not needed
Edited by Matthias Wittgen