Class LogBeta

java.lang.Object
org.apache.commons.numbers.gamma.LogBeta

public class LogBeta
extends java.lang.Object
Computes \( log_e \Beta(p, q) \).

This class is immutable.

  • Constructor Summary

    Constructors 
    Constructor Description
    LogBeta()  
  • Method Summary

    Modifier and Type Method Description
    static double value​(double p, double q)
    Returns the value of log B(p, q) for 0 ≤ x ≤ 1 and p, q > 0.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • value

      public static double value​(double p, double q)
      Returns the value of log B(p, q) for 0 ≤ x ≤ 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(Beta(p, q)), NaN if p <= 0 or q <= 0.