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).
dbeta((x - a) / (b - a), 0.5, 0.5) / (b - a)
Value(s) at which to evaluate: a number, number[] or Float64Array. The result has the same shape.
number[]
Float64Array
a and b (see ArcsineParams) and log (see DensityOptions).
a
b
log
darcsine(0.5); // 0.6366197723675813darcsine(1, { a: 0, b: 4 }); // 0.1837762984739307 Copy
darcsine(0.5); // 0.6366197723675813darcsine(1, { a: 0, b: 4 }); // 0.1837762984739307
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).