ksdensity with local bandwidths

2 views (last 30 days)
Mohamed Elhashash
Mohamed Elhashash on 21 Nov 2020
Commented: Mohamed Elhashash on 27 Nov 2020
ksdensity function uses only one global bandwidth for 1D data. I want to modify this function to accept a vector of local bandwdiths.

Answers (1)

Shubham Rawat
Shubham Rawat on 27 Nov 2020
Hi Mohamed,
You can refer to this link on how to set the bandwidth in ksdensity function in MATLAB.
Hope this Helps!

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!