Rician Distribution will not fit to positive data?
1 view (last 30 days)
Show older comments
I am trying to fit a Rician distribution to my data, z, that ranges between 2X10^-9 and 5X10^-8 via
pd = fitdist(z,'Rician');
however, the error
Error using prob.RicianDistribution>checkargs (line 197)
The parameter S must be a nonnegative finite numeric scalar.
always pops up. I get the exact same error via
phat = mle(z,'distribution','rician')
and the dfittool won't respond when I ask it to fit a Rician distribution to my data. I'm at a loss after trolling google for answers. Any suggestions?
8 Comments
yusra Ch
on 21 Feb 2020
I have the same error. Every time the value of "s" parameter is very near to zero the error shows up. Can you tell me how to bypass this error?
the cyclist
on 21 Feb 2020
Edited: the cyclist
on 21 Feb 2020
I have the same comment as in the original question. Can you post an example of an input that gives an error? Does the following code give an error?
z = [0.0005; 0.0003; 0.0008; 0.0016; 0.0002];
pd = fitdist(z,'Rician');
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!