⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rgumbel.m

📁 一个非常实用的统计工具箱
💻 M
字号:
function x = rgumbel(n,a,u)%PGUMBEL  Random numbers from the Gumbel distribution%%         x = rgumbel(n, 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')endif size(n)==1   n = [n 1];endx = -log(-log(rand(n)));x = (x+u) ./ a;

⌨️ 快捷键说明

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