필터 지우기
필터 지우기

Import Custom Distributions programmatically

조회 수: 1 (최근 30일)
John
John 2014년 10월 2일
답변: Tom Lane 2014년 10월 9일
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
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
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'

Community Treasure Hunt

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

Start Hunting!

Translated by