rChiSquare

Function to generate random observation from a Chi-squared distribution.

  1. T rChiSquare(T shape)
  2. T rChiSquare(UniformRNG rng, T shape)
    T
    rChiSquare
    (
    T = double
    UniformRNG
    )
    (
    ref UniformRNG rng
    ,)
    if (
    isFloatingPoint!T &&
    isUniformRNG!UniformRNG
    )

Examples

auto x = rChiSquare(2.0) * 5;

Meta