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

📄 chis_pdf.m

📁 计量工具箱
💻 M
字号:
function f = chis_pdf (x, a)
% PURPOSE: returns the pdf at x of the chisquared(n) distribution
%---------------------------------------------------
% USAGE: pdf = chis_pdf(x,n)
% where: x = vector 
%        n = a scalar parameter
% NOTE: chis_pdf(x,n) = gamm_pdf(x/2,n/2)/2
%---------------------------------------------------
% RETURNS:
%        a vector of pdf at each element of x from chisq(n) distribution      
% --------------------------------------------------
% SEE ALSO: chis_d, chis_cdf, chis_rnd, chis_inv
%---------------------------------------------------

%        Anders Holtsberg, 18-11-93
%        Copyright (c) Anders Holtsberg
% documentation modified by LeSage to
% match the format of the econometrics toolbox
 

if (nargin ~= 2)
    error ('Wrong # of arguments to chis_pdf');
end


if any(any(a<=0))
   error('chis_pdf: dof is wrong')
end

f = gamm_pdf(x/2,a*0.5)/2;

⌨️ 快捷键说明

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