当前位置 :
标准正态分布的Q函数用matlab怎么写标准正态分布从x到无穷大积分也就是Q函数用matlab怎么写吖还有它的反函数怎么写
更新时间: 2025-08-29 05:00:20
1人问答
问题描述:

标准正态分布的Q函数用matlab怎么写

标准正态分布从x到无穷大积分也就是Q函数用matlab怎么写吖还有它的反函数怎么写

付湘林回答:
  Matlab中本身有Q函数,即qfunc()其反函数是qfuncinv()   --------------------------------   helpqfunc   qfunc   Qfunction   Syntax   y=qfunc(x)   Description   y=qfunc(x)isoneminusthecumulativedistributionfunctionofthestandardizednormalrandomvariable,evaluatedateachelementoftherealarrayx.Forascalarx,theformulais   TheQfunctionisrelatedtothecomplementaryerrorfunction,erfc,accordingto   Examples   TheexamplebelowcomputestheQfunctiononamatrix,elementbyelement.   x=[012;345];   formatshorte%Switchtofloatingpointformatfordisplays.   y=qfunc(x)   format%Returntodefaultformatfordisplays.   Theoutputisbelow.   y=   5.0000e-0011.5866e-0012.2750e-002   1.3499e-0033.1671e-0052.8665e-007   --------------------------------------------   helpqfuncinv   qfuncinv   InverseQfunction   Syntax   y=qfuncinv(x)   Description   y=qfuncinv(x)returnstheargumentoftheQfunctionatwhichtheQfunction'svalueisx.Theinputxmustbearealarraywithelementsbetween0and1,inclusive.   Forascalarx,theQfunctionisoneminusthecumulativedistributionfunctionofthestandardizednormalrandomvariable,evaluatedatx.TheQfunctionisdefinedas   TheQfunctionisrelatedtothecomplementaryerrorfunction,erfc,accordingto   Examples   Theexamplebelowillustratestheinverserelationshipbetweenqfuncandqfuncinv.   x1=[012;345];   y1=qfuncinv(qfunc(x1))%Invertqfunctorecoverx1.   x2=0:.2:1;   y2=qfunc(qfuncinv(x2))%Invertqfuncinvtorecoverx2.   Theoutputisbelow.   y1=   012   345   y2=   00.20000.40000.60000.80001.0000
最新更新
优秀其它推荐
热门其它
保卡通(baokatong.com)汇总了汉语字典,新华字典,成语字典,组词,词语,在线查字典,中文字典,英汉字典,在线字典,康熙字典等等,是学生查询学习资料的好帮手,是老师教学的好助手。
声明:本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
Copyright©2009-2021 保卡通 baokatong.com 版权所有