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

    Function darcsine

    • Density of the arcsine distribution on (a, b), f(x) = 1 / (pi sqrt((x - a)(b - x))). Not an R function. Neither base R nor extraDistr has the arcsine distribution; this equals dbeta((x - a) / (b - a), 0.5, 0.5) / (b - a).

      Type Parameters

      Parameters

      Returns VectorResult<T>

      darcsine(0.5);                   // 0.6366197723675813
      darcsine(1, { a: 0, b: 4 }); // 0.1837762984739307