@rdeits @Ralph_Smith Care to share some hints or guidelines on how to do it? I don’t see a “good way”. At every single point I have to first check whether a fully developed partition into the lowest size cubes exists? If not I create it, if yes I add value where I need it.
Or you are saying to make the data of the leafs be a vector of 3-Tuples? But then, where do I store the values of the histogram? Remember that each 3-Tuple must map to an integer that corresponds to the amount of datapoints in the corresponding bin (equivalent to the 3-Tuple).