'width' parameter in kdensity function
4 ビュー (過去 30 日間)
古いコメントを表示
Can somebody plase explain me how to use the 'width' paramater of the kdensity function
0 件のコメント
採用された回答
the cyclist
2011 年 10 月 1 日
I suggest you read the "Bandwidth selection" section of this Wikipedia page: http://en.wikipedia.org/wiki/Kernel_density_estimation.
The width parameter is that bandwidth, and can be adjusted accordingly.
You can see the required syntax in "doc ksdensity".
3 件のコメント
the cyclist
2011 年 10 月 5 日
Call
[f,xi] = ksdensity(x);
then
[max_f index_to_max] = max(f);
finds the maxima and
xi(index_to_max)
gives the xi coordinates of the maxima.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!