DiscreteVariable constructor computes cumulative density points in place without memory allocation.
density points
optional flag indiciates if weights are already cumulative
DiscreteVariable constructor computes cumulative density points in place without memory allocation.