How to fit an ecdf to a distribution?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello every one, I would appreciate if some body can help me how to fit an ecdf to a distribution?
My code is a cdf Gaussian and I just want to fit an ecdf to the populations. Thank you!
for i=1:lxv
CG1(i)=(-1/((sqrt(2*pi))*Sn))*exp((-(x(i)-MU)^2)/(2*sig^2));
end
CGX=Sn.*(sort(CG1))+Mn;
figure (1)
plot(y,CGX,'^b','LineWidth',1);
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!