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