poisp.m
来自「统计分析的软件包」· M 代码 · 共 16 行
M
16 行
function f = poisp(x,lambda);
%POISP POISP(X,LAMBDA) is the cumulative distribution function at X
% of the Poisson distribution with mean LAMBDA.
% Reference: Johnson & Kotz, Discrete Distributions, p 114
% GKS 22 Sep 95
if lambda <= 0
error('Poisson mean must be positive.')
elseif x < 0
f = 0;
else
f = 1 - gamma( floor(x+1), lambda );
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?