\(\text{RayleighQuantile}\)

You can use the \(\text{RayleighQuantile}\) function to calculate the quantile function of the Rayleigh distribution. The quantile function is the inverse of the cumulative distribution function.

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

The following variants of this function are available:

  • \(\text{real } \text{RayleighQuantile} \left ( \text{<p>}, \text{<}\sigma\text{>} \right )\)

Where \(p\) and \(\sigma\) are scalar values representing the cumulative probability and the scale term respectively. Note that this function is defined over the range \(\sigma > 0\) and \(0 \leq p \leq 1\) 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{RayleighQuantile} \left ( p, \sigma \right ) = \sigma \sqrt{-2 \ln \left ( 1 - p \right )}\]

Figure 191 shows the basic use of the \(\text{RayleighQuantile}\) function.

../_images/rayleigh_quantile_example.png

Figure 191 Example Use Of the RayleighQuantile Function