shark::Gamma< RngType > Class Template Reference

Gamma distributed random variable. More...

#include <shark/Rng/Gamma.h>

+ Inheritance diagram for shark::Gamma< RngType >:

Public Member Functions

 Gamma (RngType &rng, double k=1, double theta=1)
 
double operator() (double k, double theta)
 
double k () const
 
double theta () const
 
void k (double newK)
 
void theta (double newTheta)
 
double p (double x) const
 

Detailed Description

template<typename RngType = shark::DefaultRngType>
class shark::Gamma< RngType >

Gamma distributed random variable.

Definition at line 136 of file Gamma.h.

Constructor & Destructor Documentation

◆ Gamma()

template<typename RngType = shark::DefaultRngType>
shark::Gamma< RngType >::Gamma ( RngType &  rng,
double  k = 1,
double  theta = 1 
)
inlineexplicit

Definition at line 142 of file Gamma.h.

Member Function Documentation

◆ k() [1/2]

template<typename RngType = shark::DefaultRngType>
double shark::Gamma< RngType >::k ( ) const
inline

Definition at line 154 of file Gamma.h.

◆ k() [2/2]

template<typename RngType = shark::DefaultRngType>
void shark::Gamma< RngType >::k ( double  newK)
inline

Definition at line 162 of file Gamma.h.

References shark::Gamma_distribution< RealType >::theta().

◆ operator()()

template<typename RngType = shark::DefaultRngType>
double shark::Gamma< RngType >::operator() ( double  k,
double  theta 
)
inline

Definition at line 148 of file Gamma.h.

◆ p()

template<typename RngType = shark::DefaultRngType>
double shark::Gamma< RngType >::p ( double  x) const
inline

◆ theta() [1/2]

template<typename RngType = shark::DefaultRngType>
double shark::Gamma< RngType >::theta ( ) const
inline

Definition at line 158 of file Gamma.h.

◆ theta() [2/2]

template<typename RngType = shark::DefaultRngType>
void shark::Gamma< RngType >::theta ( double  newTheta)
inline

Definition at line 166 of file Gamma.h.

References shark::Gamma_distribution< RealType >::k().


The documentation for this class was generated from the following file: