Instead of individual data points we may have input coming from a histogram with (value, weight) tuples. We may want to compute statistical measure using such inputs. We can either directly compute the measure or first flatten this input to generate individual data points and apply regular functions to the resulting data.
We may want to have routines to either work on weighted inputs or for flattening it.
Instead of individual data points we may have input coming from a histogram with (value, weight) tuples. We may want to compute statistical measure using such inputs. We can either directly compute the measure or first flatten this input to generate individual data points and apply regular functions to the resulting data.
We may want to have routines to either work on weighted inputs or for flattening it.