Empirical PDF data?

4 ビュー (過去 30 日間)
Bret Valenzuela
Bret Valenzuela 2016 年 6 月 23 日
コメント済み: Titus Edelhofer 2016 年 6 月 24 日
I need to get empirical data for a PDF function. I tried using a ksdensity function but it only plotted 100 points. Is there any way to increase the amount of data points in the ksdensity function? Or is there another way to get empirical data? For context I need to get the x and y data points of the final plot. Using get(plot,'Xdata') or something like that. I appreciate any help!

回答 (1 件)

Titus Edelhofer
Titus Edelhofer 2016 年 6 月 23 日
Hi Bret,
what do you mean by "empirical data". Are you looking for a draw of numbers that is e.g. normally distributed? In this case
doc normrnd
Or are you interested in plotting the PDF? In this case take a look at
doc normpdf
Both are from Statistics and Machine Learning Toolbox.
Titus
  2 件のコメント
Bret Valenzuela
Bret Valenzuela 2016 年 6 月 23 日
I was using normal distributions unfortunately my team leader wants the exact data and not a modified distribution.
Titus Edelhofer
Titus Edelhofer 2016 年 6 月 24 日
I don't understand. What are exact data? You can edit the normpdf function to see how it's computed ...

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by