how to solve "Warning: Inverse CDF calculation did not converge for p"
3 ビュー (過去 30 日間)
古いコメントを表示
I have checked already an answer for this problem here (https://it.mathworks.com/matlabcentral/answers/263138-warning-inverse-cdf-calculation-did-not-converge-for-p) but is not clear for me exaclty how to solve it.
Basically I have these 2 lines of code giving the same error with different values of p.
x1 = ksdensity(x,xx,'function','icdf'); % error: Warning: Inverse CDF calculation did not converge for p = 0.0035454.
y1 = ksdensity(y,yy,'function','icdf'); % error: Warning: Inverse CDF calculation did not converge for p = 0.99161.
I have checked the help and documentation but I don't get it.
What exaclty is p?
I have checked x1 and y1 and I noticed that the scale is very big.
If I do:
max(x1) % 6.22e+07
max(y1) % 6.79e+07
such values are non-sense.
Can anybody help?
3 件のコメント
Torsten
2021 年 5 月 31 日
Most probably by removing the smallest and largest value from your raw data.
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!