repl.txt (2382B)
1 2 {{alias}}( [λ] ) 3 Returns an exponential distribution object. 4 5 Parameters 6 ---------- 7 λ: number (optional) 8 Rate parameter. Must be greater than `0`. Default: `1.0`. 9 10 Returns 11 ------- 12 exponential: Object 13 Distribution instance. 14 15 exponential.lambda: number 16 Rate parameter. If set, the value must be greater than `0`. 17 18 exponential.entropy: number 19 Read-only property which returns the differential entropy. 20 21 exponential.kurtosis: number 22 Read-only property which returns the excess kurtosis. 23 24 exponential.mean: number 25 Read-only property which returns the expected value. 26 27 exponential.median: number 28 Read-only property which returns the median. 29 30 exponential.mode: number 31 Read-only property which returns the mode. 32 33 exponential.skewness: number 34 Read-only property which returns the skewness. 35 36 exponential.stdev: number 37 Read-only property which returns the standard deviation. 38 39 exponential.variance: number 40 Read-only property which returns the variance. 41 42 exponential.cdf: Function 43 Evaluates the cumulative distribution function (CDF). 44 45 exponential.logcdf: Function 46 Evaluates the natural logarithm of the cumulative distribution function 47 (CDF). 48 49 exponential.logpdf: Function 50 Evaluates the natural logarithm of the probability density function 51 (PDF). 52 53 exponential.mgf: Function 54 Evaluates the moment-generating function (MGF). 55 56 exponential.pdf: Function 57 Evaluates the probability density function (PDF). 58 59 exponential.quantile: Function 60 Evaluates the quantile function at probability `p`. 61 62 Examples 63 -------- 64 > var exponential = {{alias}}( 6.0 ); 65 > exponential.lambda 66 6.0 67 > exponential.entropy 68 ~-0.792 69 > exponential.kurtosis 70 6.0 71 > exponential.mean 72 ~0.167 73 > exponential.median 74 ~0.116 75 > exponential.mode 76 0.0 77 > exponential.skewness 78 2.0 79 > exponential.stdev 80 ~0.167 81 > exponential.variance 82 ~0.028 83 > exponential.cdf( 1.0 ) 84 ~0.998 85 > exponential.logcdf( 1.0 ) 86 ~-0.002 87 > exponential.logpdf( 1.5 ) 88 ~-7.208 89 > exponential.mgf( -0.5 ) 90 ~0.923 91 > exponential.pdf( 1.5 ) 92 ~0.001 93 > exponential.quantile( 0.5 ) 94 ~0.116 95 96 See Also 97 -------- 98