フィルターのクリア

gaussian probability function matlab

6 ビュー (過去 30 日間)
Kelly Howard
Kelly Howard 2016 年 1 月 25 日
編集済み: Kelly Howard 2016 年 1 月 28 日
hi, guys. Suppose i have Gaussian variable X and mean 'u' and 'σ^2', how do i use efrc to find the probability
thank you for the help

採用された回答

Star Strider
Star Strider 2016 年 1 月 25 日
From the documentation, the erf function could be preferable:
u = 0.5; % Create Data
s = 0.2;
x = 0.8;
v = (x-u)/(s*sqrt(2));
p = (1 + erf(v))/2 % Use ‘erf’
q = normcdf(x, u, s) % Check With ‘normcdf’
p =
933.1928e-003
q =
933.1928e-003
  2 件のコメント
Star Strider
Star Strider 2016 年 1 月 25 日
Using erfc needs only slightly different code (again from the documentation) to produce the same result:
u = 0.5; % Create Data
s = 0.2;
x = 0.8;
v = (x-u)/(s*sqrt(2));
p = erfc(-v)/2 % Use ‘erfc’
q = normcdf(x, u, s) % Check With ‘normcdf’
p =
933.1928e-003
q =
933.1928e-003
Star Strider
Star Strider 2016 年 1 月 26 日
My pleasure.
Please do not use mean as a variable name! It is an important MATLAB function that you will want to use later. Using it as a variable ‘overshadows’ its use as a function, so you won’t be able to use the function.
If the noise is normally distributed with a known mean and standard deviation, you would use the erfc code in my previous Comment to find the probability. That’s how I would calculate it, anyway.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by