num::clip_and_normalize_nonnegative¶ Defined in header <stats/probability.hpp> real clip_and_normalize_nonnegative(view<real> values); Clip negative entries to zero and normalize the remaining mass. Returns the mass after clipping and before normalization.