make_prevs#

mlquantify.utils.general.make_prevs(ndim: int) list[source]#

Generate a list of n_dim values uniformly distributed between 0 and 1 that sum exactly to 1.

Parameters:
ndimint

Number of dimensions.

Returns:
list

List of n_dim values uniformly distributed between 0 and 1 that sum exactly to 1.