How to find the band width in ks density plot?

1 vue (au cours des 30 derniers jours)
Silent Observer
Silent Observer le 13 Jan 2016
Commenté : Walter Roberson le 13 Jan 2016
I made a ks density plot for my random variable velocity data. How can i know the default band width and then change the band width and study the effect on my plot?

Réponse acceptée

Walter Roberson
Walter Roberson le 13 Jan 2016
"[f,xi,bw] = ksdensity(_) also returns the bandwidth of the kernel smoothing window, bw."
And to specify the bandwidth:
  3 commentaires
Silent Observer
Silent Observer le 13 Jan 2016
can you plz tell me if i want to change the band width?how can i do it?
Walter Roberson
Walter Roberson le 13 Jan 2016
ksdensity(x, pts, 'Bandwidth', 0.1234) %for example

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by