repl.txt (2425B)
1 2 {{alias}}( [μ, s] ) 3 Returns a logistic distribution object. 4 5 Parameters 6 ---------- 7 μ: number (optional) 8 Location parameter. Default: `0.0`. 9 10 s: number (optional) 11 Scale parameter. Must be greater than `0`. Default: `1.0`. 12 13 Returns 14 ------- 15 logistic: Object 16 Distribution instance. 17 18 logistic.mu: number 19 Location parameter. 20 21 logistic.s: number 22 Scale parameter. If set, the value must be greater than `0`. 23 24 logistic.entropy: number 25 Read-only property which returns the differential entropy. 26 27 logistic.kurtosis: number 28 Read-only property which returns the excess kurtosis. 29 30 logistic.mean: number 31 Read-only property which returns the expected value. 32 33 logistic.median: number 34 Read-only property which returns the median. 35 36 logistic.mode: number 37 Read-only property which returns the mode. 38 39 logistic.skewness: number 40 Read-only property which returns the skewness. 41 42 logistic.stdev: number 43 Read-only property which returns the standard deviation. 44 45 logistic.variance: number 46 Read-only property which returns the variance. 47 48 logistic.cdf: Function 49 Evaluates the cumulative distribution function (CDF). 50 51 logistic.logcdf: Function 52 Evaluates the natural logarithm of the cumulative distribution function 53 (CDF). 54 55 logistic.logpdf: Function 56 Evaluates the natural logarithm of the probability density function 57 (PDF). 58 59 logistic.mgf: Function 60 Evaluates the moment-generating function (MGF). 61 62 logistic.pdf: Function 63 Evaluates the probability density function (PDF). 64 65 logistic.quantile: Function 66 Evaluates the quantile function at probability `p`. 67 68 Examples 69 -------- 70 > var logistic = {{alias}}( -2.0, 3.0 ); 71 > logistic.mu 72 -2.0 73 > logistic.s 74 3.0 75 > logistic.entropy 76 ~3.1 77 > logistic.kurtosis 78 1.2 79 > logistic.mean 80 -2.0 81 > logistic.median 82 -2.0 83 > logistic.mode 84 -2.0 85 > logistic.skewness 86 0.0 87 > logistic.stdev 88 ~5.441 89 > logistic.variance 90 ~29.609 91 > logistic.cdf( 0.8 ) 92 ~0.718 93 > logistic.logcdf( 0.8 ) 94 ~-0.332 95 > logistic.logpdf( 2.0 ) 96 ~-2.9 97 > logistic.mgf( 0.2 ) 98 ~1.329 99 > logistic.pdf( 2.0 ) 100 ~0.055 101 > logistic.quantile( 0.9 ) 102 ~4.592 103 104 See Also 105 -------- 106