Gaussian Fitting under peaks
古いコメントを表示
Is there a specific matlab function that would allow my program to estimate a guassian distrubution for each of the peaks found (in this case 5 peaks).

採用された回答
その他の回答 (1 件)
the cyclist
2022 年 4 月 15 日
編集済み: the cyclist
2022 年 4 月 15 日
If you have the underlying data the fitgmdist function in the Statistics and Machine Learning Toolbox does this sort of fit. Here is some code I wrote, that fits an example (with just two peaks):
MU1 = 1;
SIGMA1 = 1;
MU2 = -3;
SIGMA2 = 1;
X = [mvnrnd(MU1,SIGMA1,1000);mvnrnd(MU2,SIGMA2,1000)];
figure
histogram(X,51)
options = statset('Display','final');
obj = fitgmdist(X,2,'Options',options)
The output obj has more stats in it.
カテゴリ
ヘルプ センター および File Exchange で Descriptive Statistics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
