看板 MATLAB 關於我們 聯絡資訊
因為matlab沒有我需要的隨機產生器,所以想要自己寫一個,有參考其他隨機產生器的 code,可是還是不太懂,所以想請教大大 已知隨機變數的pdf為f(x) =u/(tanh(u*x_max)*cosh(u*x)^2) ,0<x=<x_max cdf為Y(x) =tanh(u*x)/tanh(u*x_max) x為分佈在0到x_max之間的隨機變數 u為控制分佈曲線的標準差,大小在0到1之 請求大大替我解答,不用寫太完整,只要出來的x是上面的分佈就好可以的話請教一下為什麼 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 120.107.168.14 ※ 文章網址: http://www.ptt.cc/bbs/MATLAB/M.1413472825.A.679.html ※ 編輯: sh053394 (120.107.168.14), 10/16/2014 23:29:15
JamesChen: Mathematically, you can find the transformmation 10/17 02:13
JamesChen: and then tansform a uniform/normal distri. to 10/17 02:14
JamesChen: to the one you want 10/17 02:14
mp19990920: 請參考 wiki 的 cdf 內的 inverse cdf 10/17 11:32
winse: 可參考一些隨機過程的書 10/18 17:18
※ 編輯: sh053394 (120.107.168.14), 10/30/2014 20:35:18
sh053394: 對不起,始終還是不懂為什麼可以令cdf是uniform dri 10/30 20:37