erfc2.m

来自「支持向量机工具箱」· M 代码 · 共 24 行

M
24
字号
function [y]=erfc2(x,m,d)
% ERFC2 Normal cumulative distribution function (cdf).
% [y]=erfc2(x,m,d)
% 
% ERFC2 computes normal cumulative distribution function (cdf)
%  using Matlab's function 'erfc'. The argument m is mean value
%  and d is stantard deviation. The computed vlaue is 
%
%  erfc2(x) = 1/(sqrt(2*pi)*d) * integral_{x}^{inf}exp(-(t-m)^2/(2*d^2) dt
%
% See also ERFC
%

% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac
% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz
% Modifications
%  27-Oct-2001, V. Franc

x2=(x-m)/(sqrt(2)*d);

y=erfc(x2)/2;

return;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?