ksdensity function for pdf estimation
2 次查看(过去 30 天)
显示 更早的评论
i feed some data to ksdensity but i got a gaussian pdf with peak greater than 1 how is that
0 个评论
回答(2 个)
David Sanchez
2014-5-14
As you can see in the ksdensity documentation, depending n how you use the function, there is nothing abnormal with your result:
From documentation: Generate a mixture of two normal distributions, and plot the estimated inverse cumulative distribution function at a specified set of values:
x = [randn(30,1); 5+randn(30,1)];
yi = linspace(.01,.99,99);
g = ksdensity(x,yi,'function','icdf');
plot(yi,g);
Paste the code you are using in order to provide a good solution to your question.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Wireless Communications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!