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```

Version History

Introduced before R2006a