Package org.apache.commons.numbers.gamma
Class LogBeta
java.lang.Object
org.apache.commons.numbers.gamma.LogBeta
Computes \( log_e B(p, q) \).
This class is immutable.
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublevalue(double p, double q) Returns the value of \( \log B(p, q) \) for \( 0 \leq x \leq 1 \) and \( p, q > 0 \).
-
Method Details
-
value
Returns the value of \( \log B(p, q) \) for \( 0 \leq x \leq 1 \) and \( p, q > 0 \). Based on the NSWC Library of Mathematics Subroutines implementation,DBETLN.- Parameters:
p- First argument.q- Second argument.- Returns:
- the value of \( \log B(p, q) \), or
NaNifp <= 0orq <= 0.
-