資源簡介
matlab程序,隨機生成滿足伽馬分布的雷達雜波信號,并與理論PDF及CDF對比
代碼片段和文件信息
function?[P?iterations]?=?rand_gamma(N?M?b?c)
%
%?file:?????? rand_gamma.m?(c)?Matthew?Roughan?Mon?Apr??4?2011
%?created:? Mon?Apr??4?2011?
%?author:?? Matthew?Roughan?
%?email:??? matthew.roughan@adelaide.edu.au
%
%?Generate?a?Gamma?random?variable
%????“Statistical?Distributions“?Evans?Hastings?Peacock?2nd?Edition
%????Wiley?1993?p.75-81
%
%?INPUTS:?
%???????(NM)?=?size?of?array?of?random?variables?to?generate
%???????b?=?scale?parameter?>?0
%???????c?=?shape?parameter?>?0
%
%?probability?density?function?(pdf)
%????p(x)?=?(x/b)^(c-1)?*?exp(-x/b)??/?(b?*?gamma(c))
%
%?where?gamma(c)?is?the?gamma?function?(http://en.wikipedia.org/wiki/Gamma_function)
%
%?Basic?stats?of?the?gamma?distribution
%???????mean?=?b?c
%???variance?=?b^2?c
%
%?generation?method?comes?from?
%????http://en.wikipedia.org/wiki/Gamma_distribution#Generating_gamma-distributed_random_variables
%??????????notation:???theta?=?b?
%??????????????????????????k?=?c
%?the?algorithm?exploits?several?properties?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1550??2011-04-05?01:39??license.txt
?????文件????????2109??2011-04-05?01:21??rand_gamma.m
?????文件?????????651??2011-04-04?08:04??rand_gamma.m~
?????文件?????????481??2011-04-05?01:32??rand_gamma_test.m
?????文件??????????49??2011-04-04?08:28??rand_gamma_test.m~
?????文件???????13502??2011-04-05?01:32??rand_gamma_test.png
評論
共有 條評論