parameters estimation using k-means
古いコメントを表示
hi l have an image which is divided in two clusters Co:pixels of objects and Cf pixels of background. l(y|x) is likelihood of observations y conditional on a configuration x. the L(y|x) expression is modeled as a mixture of two Gaussian. i want to estimate the mean mu and the standard deviation sigma of each classes using the k-means algorithm in two clusters. how to code this ? can anyone help me please ?? thanks in advance
回答 (1 件)
Ilya
2012 年 7 月 4 日
0 投票
I don't follow. k-means is used for non-parametric clustering of data. If your data are already clustered, you can use functions mean and std to compute the mean and standard deviation. If you need to cluster your data assuming a mixture of Gaussians, you can use gmdistribution from the Statistics Toolbox.
4 件のコメント
thoraya
2012 年 7 月 4 日
Ilya
2012 年 7 月 4 日
Ok, so why don't you use kmeans function from Statistics Toolbox for clustering?
thoraya
2012 年 7 月 5 日
Ilya
2012 年 7 月 5 日
No one could find the problem based on the info you posted. Explain clearly what "doesn't work" means. I would also recommend starting a new thread.
カテゴリ
ヘルプ センター および File Exchange で k-Means and k-Medoids Clustering についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!