The OpenD Programming Language

rayleighCCDF

Ditto, with scale parameter.

  1. T rayleighCCDF(T x)
  2. T rayleighCCDF(T x, T scale)
    @safe pure nothrow @nogc
    T
    rayleighCCDF
    (
    T
    )
    (
    const T x
    ,
    const T scale
    )
    if (
    isFloatingPoint!T
    )

Parameters

x T

value to evaluate CCDF

scale T

scale parameter

Examples

import mir.test: shouldApprox;

0.0.rayleighCCDF.shouldApprox == 1.0;
0.5.rayleighCCDF.shouldApprox == 0.8824969;
1.0.rayleighCCDF.shouldApprox == 0.6065307;
2.0.rayleighCCDF.shouldApprox == 0.1353353;

// Can also provide scale parameter
0.5.rayleighCCDF(2.0).shouldApprox == 0.9692332;
1.0.rayleighCCDF(2.0).shouldApprox == 0.8824969;
4.0.rayleighCCDF(2.0).shouldApprox == 0.1353353;

Meta