random (2) 썸네일형 리스트형 Random number generation using C++ TR1 C++ TR1으로 특정 확률분포를 가지는 랜덤 수를 생성하는 방법 (구현) http://www.johndcook.com/cpp_TR1_random.html http://preshing.com/20111007/how-to-generate-random-timings-for-a-poisson-process http://telliott99.blogspot.kr/2010/02/replot-poisson-example-with-python.html [python]numpy에서 표준분포로 random 수 생성 다차원 랜덤 배열 생성을 위해서 numpy를 이용. numpy에서는 다양한 분포함수를 제공하고 있다. (http://docs.scipy.org/doc/numpy/reference/routines.random.html) 아래에 예로 적어놓은 standard_normal은 표준분포이다. 원하는 분포함수를 위 레퍼런스를 보고 결정하면 된다. 만들어지는 데이터의 타입은 일단 1차원의 경우에는 >>> from numpy import * >>> random.standard_normal(5) array([ 0.19178306, 1.29379677, 0.38624875, -0.62396755, 0.88241794]) 2차원의 경우에는 >>> from numpy import * >>> random.standard_nor.. 이전 1 다음