Logarithm of beta function
L = betaln(Z,W)
L = betaln(Z,W) computes
the natural logarithm of the
for corresponding elements of arrays
beta(Z,W). Since the beta function
can range over very large or very small values, its logarithm is sometimes
W must be real and
nonnegative. They must be the same size, or either can be scalar.
Compute Natural Log of Beta Function
Compute the natural logarithm of the beta function according to the value of
X without directly computing the beta function.
beta(X,X) results in floating point arithmetic underflow.
X = 510; betaln(X,X)
ans = -708.8616
betaln(z,w) = gammaln(z)+gammaln(w)-gammaln(z+w)
Calculate with arrays that have more rows than fit in memory.
This function fully supports tall arrays. For more information, see Tall Arrays.
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Run code in the background using MATLAB®
backgroundPool or accelerate code with Parallel Computing Toolbox™
This function fully supports thread-based environments. For more information, see Run MATLAB Functions in Thread-Based Environment.
Accelerate code by running on a graphics processing unit (GPU) using Parallel Computing Toolbox™.
This function fully supports GPU arrays. For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
Partition large arrays across the combined memory of your cluster using Parallel Computing Toolbox™.
This function fully supports distributed arrays. For more information, see Run MATLAB Functions with Distributed Arrays (Parallel Computing Toolbox).
Introduced before R2006a