Import Custom Distributions programmatically
2 ビュー (過去 30 日間)
古いコメントを表示
I have a custom distribution in the +prob folder in my working directory. I can import this distribution by running the dfittool gui, then going to file -> import custom distributions. Is there a way to achieve the same (or similar) effect programmatically?
1 件のコメント
Bruno Pop-Stefanov
2014 年 10 月 7 日
Hi John,
I was playing around with dfittool to see if there is a programmatical workflow, but I am not sure I understand what File > Import Custom Distributions does. I created a custom Laplace distribution by clicking File > Define Custom Distributions. This is what the doc explains. Then, I close and re-open dfittool and the new Laplace distribution is already there. Doing File > Import Custom Distributions seems to have no effect at all.
Would you mind explaining what this menu option does and what you were expecting to do with a programmatic workflow? Does it allow fitting outside of the Distribution Fitting Tool?
Thanks!
回答 (1 件)
Tom Lane
2014 年 10 月 9 日
This command shows the distributions that are available:
>> makedist
ans =
'beta'
...
'weibull'
It also takes an argument that asks MATLAB go to out and look again. So if you have introduced a new distribution class using the prob.XXX convention you mention, it should find the new distribution:
>> makedist -reset
>> makedist
ans =
'beta'
...
'laplace' <-- the new one I added
...
'weibull'
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!