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

📄 ggmle.m

📁 基于小波变换的特征检索算法
💻 M
字号:
function [ahat, bhat] = ggmle(x, options)
% GGMLE Parameter estimates for generalized Gaussian distributed data.
%	GGMLE(X, OPTIONS) Returns the maximum likelihood estimates of the  
%    	parameters of the generalized Gaussian distribution given the data in
%   	the vector, X.
%
%	OPTIONS (option) is set by OPTIMSET to be used with FZERO

if min(size(x)) > 1
    error('The first argument in GGMLE must be a vector.');
end

if nargin < 2
    options = [];
end

% Method of Moments Estimates (for beta only)
absx = abs(x);
m1 = mean(absx);
m2 = mean(x.^2);
bhat = estbeta(m1, m2);

% Method of Maximum Likelihood Estimates
% (using Moment Estimate as the initial guess)
bhat = fzeron('dggbeta', bhat, options, absx);
ahat = (bhat * sum(absx .^ bhat) / length(x)) ^ (1 / bhat);

⌨️ 快捷键说明

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