필터 지우기
필터 지우기

distributionFitter: Lognormal distribution

조회 수: 1 (최근 30일)
Mohamed Zied
Mohamed Zied 2023년 2월 9일
댓글: Mohamed Zied 2023년 2월 13일
Hi
I wanted to fit my Data to the lognormal distribution, but I get this error message : "The data in X must be positive".
I am pretty sure that the data and the frequency arrays are positive (>=0).
How can I ovecome this issue.
  댓글 수: 5
Mohamed Zied
Mohamed Zied 2023년 2월 13일
Yes, I found some zeros.
I have to remove these values to be able to fitt my data to the Lognormal distribution.
Thank you for your help
Mohamed Zied
Mohamed Zied 2023년 2월 13일
I predefined the bin edges. for some bins the count is 0. Thus, the error.

댓글을 달려면 로그인하십시오.

채택된 답변

Steven Lord
Steven Lord 2023년 2월 9일
I am pretty sure that the data and the frequency arrays are positive (>=0).
0 is not positive. What does this command show?
any(Data(1, :) == 0)
  댓글 수: 1
Mohamed Zied
Mohamed Zied 2023년 2월 13일
You are right. There are some zeros in my Data. I have to remove these values to be able to fitt my data to the Lognormal distribution.
Thank you for your help

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by