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