|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
4 h: i8 M- k0 e) b
Matlab2012b中使用高斯混合模型报错:
* G+ {3 {% \" |( X, S& ]) |! K4 d& S/ B- J+ j8 A5 U
gm = fitgmdist(X,2,'Options',options)( o* u0 r; V# c3 s: V
2 K4 Q: v5 ]/ _2 [" h) V4 \# m- SUndefined function 'fitgmdist' for input arguments of type 'struct'.8 j% _1 H7 t. U
了解相关信息,发现fitgmdist函数是Statistics and Machine Learning Toolbox工具箱中的东西,一筹莫展之际,看到了参考文献②,于是将高斯混合模型改为:# B ^# L1 ]3 I2 {
3 R0 z4 i! k# [0 J3 W. Pgm=gmdistribution.fit(X,2,'Covtype','Diagonal','Regularize',1e-10,'Options',options);
. x, d6 |- Q& i, Z; b& l l
) c; r7 z |+ [* r顺利执行。0 f2 f& c) ?9 y& E _
" i) C+ x! d% ^* F+ { |
|