Technique to Equalize Histogram Bin size and Ks Density Curve Bandwidth

时间秒杀一切 提交于 2019-12-25 11:58:40

问题


I have also asked the query few days before because the clarification was vague so that's why I am uploading a query with updated views.Link is as follows. Updated :Technique used to control Step sizes (Quantization levels) of signals

I am explaining example data here because it is not possible for me to mention my original data.

I have plotted a histogram curve along with ks density.

I have placed bin size =10 and bandwidth of ks Density curve to be 0.08.

Actually I want to analyze the values based on data from Histfit (by applying 3 modal technique.) and Ks density curve.

Example Code:

 x = rand([1 50])
 figure(1)
 histfit(x,10)
 hold on 
 % [f,xi] = ksdensity(x);
 [f,xi,bw] = ksdensity(x,'width',0.08);
 plot(xi,f);
 hold off

Question:

Is it possible that I make the bin size and Bandwidth of Ks density curve same to visualize the results on same standards?

In simple words is bin size 10 equals to 0.08 bandwidth from Ks density curve.

Or how to make bin size and bandwidth equal to visualize the results on same standards.

来源:https://stackoverflow.com/questions/45960106/technique-to-equalize-histogram-bin-size-and-ks-density-curve-bandwidth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!