dgumbel.m

来自「一个非常实用的统计工具箱」· M 代码 · 共 24 行

M
24
字号
function f = dgumbel(x,a,u)%DGUMBEL  The Gumbel density function%%         f = dgumbel(x, a, u)%%	  Defaults are a = 1 and m = 0. The parameter  a  is %	  proportional to the inverse of the standard deviation%	  and the parameter  u  is the position.%       GPL Copyright (c) Anders Holtsberg, 1999if nargin < 2   a = 1;endif nargin < 3   u = 0;endif any(any(a<=0))   error('Parameter a is wrong')endx = -a .* (x-u);f = a .* exp(-exp(x) + x);

⌨️ 快捷键说明

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