Matlab中本身有Q函數(shù),即qfunc() 其反函數(shù)是qfuncinv()
--------------------------------
help qfunc
qfunc
Q function
Syntax
y = qfunc(x)
Description
y = qfunc(x) is one minus the cumulative distribution function of the standardized normal random variable,evaluated at each element of the real array x.For a scalar x,the formula is
The Q function is related to the complementary error function,erfc,according to
Examples
The example below computes the Q function on a matrix,element by element.
x = [0 1 2; 3 4 5];
format short e % Switch to floating point format for displays.
y = qfunc(x)
format % Return to default format for displays.
The output is below.
y =
5.0000e-001 1.5866e-001 2.2750e-002
1.3499e-003 3.1671e-005 2.8665e-007
--------------------------------------------
help qfuncinv
qfuncinv
Inverse Q function
Syntax
y = qfuncinv(x)
Description
y = qfuncinv(x) returns the argument of the Q function at which the Q function's value is x.The input x must be a real array with elements between 0 and 1,inclusive.
For a scalar x,the Q function is one minus the cumulative distribution function of the standardized normal random variable,evaluated at x.The Q function is defined as
The Q function is related to the complementary error function,erfc,according to
Examples
The example below illustrates the inverse relationship between qfunc and qfuncinv.
x1 = [0 1 2; 3 4 5];
y1 = qfuncinv(qfunc(x1)) % Invert qfunc to recover x1.
x2 = 0:.2:1;
y2 = qfunc(qfuncinv(x2)) % Invert qfuncinv to recover x2.
The output is below.
y1 =
0 1 2
3 4 5
y2 =
0 0.2000 0.4000 0.6000 0.8000 1.0000
標(biāo)準(zhǔn)正態(tài)分布的Q函數(shù)用 matlab 怎么寫
標(biāo)準(zhǔn)正態(tài)分布的Q函數(shù)用 matlab 怎么寫
標(biāo)準(zhǔn)正態(tài)分布從x到無窮大積分 也就是Q函數(shù) 用matlab怎么寫吖 還有它的反函數(shù)怎么寫
標(biāo)準(zhǔn)正態(tài)分布從x到無窮大積分 也就是Q函數(shù) 用matlab怎么寫吖 還有它的反函數(shù)怎么寫
其他人氣:520 ℃時間:2020-05-30 16:20:30
優(yōu)質(zhì)解答
我來回答
類似推薦
- matlab中如何求標(biāo)準(zhǔn)正態(tài)分布的反函數(shù)?
- matlab求正態(tài)分布函數(shù).
- matlab 如何計算正態(tài)分布函數(shù)N(x)
- 怎么用MATLAB產(chǎn)生均值為1方差為0.2正態(tài)分布的500個隨機數(shù)?rand()函數(shù)用于產(chǎn)生標(biāo)準(zhǔn)正態(tài)分布.
- 求標(biāo)準(zhǔn)正態(tài)分布函數(shù)的原函數(shù)(高中的)
- 陳蕃的“蕃”在這里的讀音是什么?
- But the one million people of the city,who thought little of these events,were asleep as usual that
- 線粒體的氧化磷酸化和葉綠體的光合磷酸化有什么共同點和不同點?
- 一個含30度角的直角三角形能否分割成2個全等的三角形
- 設(shè)f(x)=√x,g(x)=-x+a(a>0,a∈R),若不等式▏{f(x)+a[g(x)-2a]}/f(x)▕ ≤1對x∈[1,4]恒成立,求a的取值范圍.小弟拜謝!
- 熱帶魚最適合的溫度是幾度?
- 有關(guān)圓周率的知識
猜你喜歡
- 1用120個邊長是1cm的正方形,可以擺出 種面積是120平方厘米的長方形.
- 2m為何值時,方程組y=x+my2?4x?2y+1=0 (1)有兩組不相等的實數(shù)解; (2)有相同的兩組實數(shù)解; (3)無實數(shù)解.
- 3初一語文(下)主要復(fù)習(xí)什么?
- 4腦筋急轉(zhuǎn)彎:.How can you make a rope shorter without cutting or winding it?
- 5一根跳繩長五分之四米,這根跳繩的四分之三有多長?怎么算?
- 6人們在大自然中受到過哪些啟發(fā),有什么發(fā)明創(chuàng)造
- 7為什么before后面加being given而不是giving
- 8不要把污水直接排入河流英文怎么說
- 9兩個同體積的容器一個裝HCl氣體另一裝H2和CL2的混合氣體同溫同壓下,一定相同的是.
- 10五星村共有小麥的320公頃,玉米地比小麥地多1/4,這個村的玉米地比小麥地多多少公頃?玉米地有多少公頃?
- 11老外口中的的she average是什么意思
- 12大什么大什么,要成語的.