From: Dr. A. K. <Ale...@ma...> - 2012-09-04 10:12:39
|
Hello, the other day I had to compare empirical cumulative distribution functions with analytical ones, and I came up with the attached function file to plot the differences, like for example p=normcdf(randn(1e6,1),0,0.9); plot_deviation_from_uniform_cdf(p,5) figure p=normcdf(randn(1e6,1),0.1,1); plot_deviation_from_uniform_cdf(p,5) figure p=expcdf(exprnd(2,1e6,1),0.5); plot_deviation_from_uniform_cdf(p,4) Do you think it could be useful in any package? If so, I'd document and submit it. Later, Alex -- Dr. Alexander Klein, Diplom-Mathematiker Physiologisches Institut der JLU-Gießen Aulweg 129 35392 Gießen http://www.med.uni-giessen.de/physio/ |