rStats.js v1.3.0
    Preparing search index...

    Function dchisq

    • Density of the chi-squared distribution. Equivalent to R's dchisq(x, df, ncp = 0, log = FALSE).

      If ncp is omitted the central distribution is used; otherwise the noncentral chi-squared distribution.

      Type Parameters

      Parameters

      Returns VectorResult<T>

      The density (or log density).

      dchisq(1, 3);              // 0.24197072451914337
      dchisq(1, 3, { ncp: 2 }); // 0.12180056753215114