You can use the \(\text{RayleighCDF}\) function to calculate the cumulative distribution function (CDF) of the Rayleigh distribution.

You can use the \rayleighc backslash command to insert this function.

The following variants of this function are available:

  • \(\text{real } \text{RayleighCDF} \left ( \text{<x>}, \text{<}\sigma\text{>} \right )\)

Where \(x\) and \(\sigma\) are scalar values representing the value of interest and the scale term respectively. Note that this function is defined over the range \(\sigma > 0\) and will generate a runtime error or return NaN for values for which the function is not defined.

The value is calculated directly using the relation:

\[\text{RayleighCDF} \left ( x, \sigma \right ) = 1 - e ^ { - \frac{x ^ 2}{2 \sigma ^ 2} }\]

Figure 189 shows the basic use of the \(\text{RayleighCDF}\) function.


Figure 189 Example Use Of the RayleighCDF Function