Fitting a double exponential cumulative distribution function
Mostrar comentarios más antiguos
Hello,
I have an empirical probability distribution function (PDF) that fits best to a double exponential, i.e. by specifying exp2 in the fit function:
a*exp(b*x) + c*exp(d*x)
However, I want to ensure that this is also true without binning, so I want to use an exponential cumulative distribution function (CDF).
So, I construct a CDF like this:
[p,x]=ecdf(x);
Now I want to fit a double CDF to this. For fitting to a double CDF, it seems like I could fit the double CDF with cftool, but I'd rather use the fit function as it needs to be automated. So does anyone know a) if I can specify a custom equation with the fit function and b) what the equation for a double exponential CDF would look like?
Thank you!
Respuesta aceptada
Más respuestas (1)
Peter Perkins
el 22 de Mzo. de 2012
0 votos
Grant, can I suggest that you take a look at
before going too much further? It may be that you want dfittool, not cftool.
1 comentario
Grant
el 22 de Mzo. de 2012
Categorías
Más información sobre Exponential Distribution en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!