matlab gmdistribution.fit,gmdistribution.fit使用

该博客介绍了如何在MATLAB中使用gmdistribution.fit函数来对数据进行高斯混合模型的拟合。该函数通过期望最大化(EM)算法进行参数估计,并提供了对初始化参数、重复次数、协方差类型等选项的控制,以适应不同的数据集和需求。
摘要由CSDN通过智能技术生成

link:http://www.mbfys.ru.nl/~robvdw/CNP04/LAB_ASSIGMENTS/LAB05_CN05/MATLAB2007b

/stats/@gmdistribution/fit.m源文件

%FIT Fit data to Gaussian mixture model

% G = GMDISTRIBUTION.FIT(X,K) creates an object G containing maximum

% likelihood estimates of the parameters in a Gaussian mixture model with

% K components for the data in X. X is an N-by-D matrix. Rows of X

% correspond to points; columns correspond to variables. The

% estimation uses the Expectation Maximization (EM) algorithm.

%

% GMDISTRIBUTION treats NaNs as missing data. Rows of X with NaNs are

% excluded from the fit.

%

% G = GMDISTRIBUTION.FIT(...,'PARAM1',val1,'PARAM2',val2,...)

% provides more control over the iterative EM algorithm. Parameters

% and values are listed below.

%

% 'Start' Method used to choose initial component parameters.

% There are three choices:

%

% 'randSample' Select K observations from X at random as the

% initial component means. The mixing

% proportions are uniform. The initial

% covariance matrices for all clusters are

% diagonal, where the Jth element on the diagonal

% is the variance of X(:,J). This is the default.

%

% A structure array S containing the following fields:

%

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值