上传者: 38662367
|
上传时间: 2021-10-26 19:40:43
|
文件大小: 36KB
|
文件类型: -
em算法matlab代码EM_GMM
Matlab代码使用EM算法拟合高斯混合模型(GMM)
如何使用代码
使用以下方法安装GMM:
P
=
trainGMM(data,numComponents,maxIter,needDiag,printLikelihood)
参数:
data
-
a
NxP
matrix
where
the
rows
are
points
and
the
columns
are
variables.
e.g.
N
2-D
points
would
have
N
rows
and
2
columns
numComponents
-
the
number
of
gaussian
mixture
components
maxIter
-
the
number
of
iterations
to
run
expectation-maximization
(EM)
for
fitting
the
GMMs
needDiag
-
set
as
1
if
you
want
diagonal
covariance
matrices
for
the
components.
Set