Documentation

This is machine translation

Translated by
Mouse over text to see original. Click the button below to return to the English verison of the page.

raylstat

Rayleigh mean and variance

Syntax

`[M,V] = raylstat(B)`

Description

`[M,V] = raylstat(B)` returns the mean of and variance for the Rayleigh distribution with scale parameter `B`.

The mean of the Rayleigh distribution with parameter b is $b\sqrt{\pi /2}$and the variance is

`$\frac{4-\pi }{2}{b}^{2}$`

Examples

```[mn,v] = raylstat(1) mn = 1.2533 v = 0.4292```