find bandwidth of Kernel Density Estimator

1 回表示 (過去 30 日間)
ha ha
ha ha 2018 年 3 月 6 日
回答済み: ha ha 2018 年 3 月 6 日
I'm doing kernel density estimator of the set of 1d data by using the blow code:
clear;clc;data=[randn(100,1)-10;randn(100,1)+10]; % normal mixture with two humps
[bandwidth,density,xmesh,cdf]=kde(data);
hold on;plot(xmesh',density);xlabel('data');ylabel('density');grid on; % plot kde with solve-the-equation bandwidth
The function "kde" is used as follow link:
https://www.mathworks.com/matlabcentral/fileexchange/14034-kernel-density-estimator
The example result is as this below picture.
Question: Now, I wanna find some value (data1, data2, bw1, bw2)from this result. Please see the figure. How can I find???
  2 件のコメント
KSSV
KSSV 2018 年 3 月 6 日
Read about findpeaks
ha ha
ha ha 2018 年 3 月 6 日
Thank answer. correct

サインインしてコメントする。

採用された回答

ha ha
ha ha 2018 年 3 月 6 日
findpeaks

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by