<< nisp_erfcinv Support nisp_expinv >>

NISP >> NISP > Support > nisp_expcdf

nisp_expcdf

Computes the Exponential CDF.

Calling Sequence

p = nisp_expcdf ( x )
p = nisp_expcdf ( x , lambda )

Parameters

x:

a matrix of doubles

lambda :

a matrix of doubles

p:

a matrix of doubles, the probability

Description

This function computes the Exponential CDF.

Any scalar input argument is expanded to a matrix of doubles of the same size as the other input arguments.

Any optional input argument equal to the empty matrix will be set to its default value.

TODO : improve implementation (check inf, nan, etc...)

Examples

// http://en.wikipedia.org/wiki/Exponential_distribution
scf();
x = linspace(0,5,1000);
p = nisp_expcdf ( x , 0.5 );
plot(x,p, "r-" );
p = nisp_expcdf ( x , 1 );
plot(x,p, "m-" );
p = nisp_expcdf ( x , 1.5 );
plot(x,p, "c-" );
xtitle("Exponential Cumulated Distribution Function","X","P(X)");
legend(["lambda=0.5","lambda=","lambda=1.5"]);

Authors

Bibliography

Wikipedia, Exponential distribution function, http://en.wikipedia.org/wiki/Exponential_distribution

<< nisp_erfcinv Support nisp_expinv >>