'width' parameter in kdensity function
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Can somebody plase explain me how to use the 'width' paramater of the kdensity function
0 Commenti
Risposta accettata
the cyclist
il 1 Ott 2011
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 Commenti
the cyclist
il 5 Ott 2011
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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Workspace Variables and MAT Files in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!