사용자 도구

사이트 도구


python:random

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
python:random [2018/11/20 13:14] – 만듦 rex8312python:random [2024/03/23 02:42] (현재) – 바깥 편집 127.0.0.1
줄 7: 줄 7:
 def log_uniform(low=0, high=1, size=None): def log_uniform(low=0, high=1, size=None):
     return np.exp(np.random.uniform(np.log(low), np.log(high), size))     return np.exp(np.random.uniform(np.log(low), np.log(high), size))
-   +
-  +
 xs = np.log(log_uniform(0.04, 0.0001, 10000)) xs = np.log(log_uniform(0.04, 0.0001, 10000))
 import matplotlib.pyplot as plt import matplotlib.pyplot as plt
 plt.hist(xs, bins=100); plt.show() plt.hist(xs, bins=100); plt.show()
 </code> </code>
python/random.1542719685.txt.gz · 마지막으로 수정됨: (바깥 편집)