Functions
vnl_beta.h File Reference

implementation of the beta function, also called the Euler integral of the first kind More...

#include "vnl_gamma.h"
#include "vnl/vnl_export.h"

Go to the source code of this file.

Functions

template<class T >
VNL_EXPORT double vnl_beta (T x, T y)
 Computation of beta function in terms of gamma function. More...
 
template<class T >
VNL_EXPORT double vnl_log_beta (T x, T y)
 Computation of the log beta function in terms of the log gamma function. More...
 

Detailed Description

implementation of the beta function, also called the Euler integral of the first kind

Author
Gamze Tunali

Definition in file vnl_beta.h.

Function Documentation

◆ vnl_beta()

template<class T >
VNL_EXPORT double vnl_beta ( x,
y 
)
inline

Computation of beta function in terms of gamma function.

Actually, this implementation refers to vnl_log_gamma, since this involves just a single call to std::exp instead of three.

Definition at line 17 of file vnl_beta.h.

◆ vnl_log_beta()

template<class T >
VNL_EXPORT double vnl_log_beta ( x,
y 
)
inline

Computation of the log beta function in terms of the log gamma function.

vnl_log_beta is just the std::log (natural logarithm) of the beta function.

Definition at line 27 of file vnl_beta.h.