home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacFormat España 21
/
macformat_21.iso
/
Shareware
/
Programación
/
VideoToolbox
/
VideoToolboxSources
/
Exponential.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-07-19
|
283 b
|
13 lines
|
[
TEXT/CWIE
]
/* Exponential.c
Routines related to the exponential probability distribution.
Also see: Binomial.c, ChiSquare.c, Normal.c, Uniform.c
*/
double ExponentialPdf(double x);
double ExponentialPdf(double x)
/* Mean and variance are 1. */
{
if(x<0.0)return 0.0;
else return exp(-x);
}