def dist_points(bin_edges, d):
bc = bin_centers(bin_edges)<EOL>if d is not None:<EOL><INDENT>d = DISTS[d['<STR_LIT:type>']](d, bc)<EOL><DEDENT>return d, bc<EOL>
Return an array of values according to a distribution

    Points are calculated at the center of each bin