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

    Function dbeta

    • Density of the beta distribution. Equivalent to R's dbeta(x, shape1, shape2, ncp = 0, log = FALSE).

      If ncp is omitted the central distribution is used; otherwise the noncentral beta distribution.

      Type Parameters

      Parameters

      Returns VectorResult<T>

      The density (or log density).

      dbeta(0.5, 2, 3);         // 1.5
      dbeta([0.25, 0.75], 2, 3); // [1.6875, 0.5625]