How do I generate Log Uniform Distribution in Python?
问题 I could not find a built-in function in Python to generate a log uniform distribution given a min and max value (the R equivalent is here), something like: loguni[n, exp(min), exp(max), base] that returns n log uniformly distributed in the range exp(min) and exp(max). The closest I found though was numpy.random.uniform. 回答1: From http://ecolego.facilia.se/ecolego/show/Log-Uniform%20Distribution: In a loguniform distribution, the logtransformed random variable is assumed to be uniformly