I'm trying to generate a frozen discrete Uniform Distribution (like stats.randint(low, high)
) but with steps higher than one, is there any way to do this with scipy ?
I think it could be something close to hyperopt's hp.uniformint
.
rv_discrete(values=(xk, pk))
constructs a distribution with support xk
and provabilities pk
.
See an example in the docs: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rv_discrete.html