shark::Gamma_distribution< RealType > Class Template Reference

Gamma distribution. More...

#include <shark/Rng/Gamma.h>

Public Member Functions

 Gamma_distribution (RealType k, RealType theta)
 
RealType k () const
 
RealType theta () const
 
void reset ()
 
template<class Engine >
result_type operator() (Engine &eng)
 

Friends

template<class CharT , class Traits >
std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &os, const Gamma_distribution &gd)
 
template<class CharT , class Traits >
std::basic_istream< CharT, Traits > & operator>> (std::basic_istream< CharT, Traits > &is, Gamma_distribution &gd)
 

Detailed Description

template<class RealType = double>
class shark::Gamma_distribution< RealType >

Gamma distribution.

Definition at line 47 of file Gamma.h.

Constructor & Destructor Documentation

◆ Gamma_distribution()

template<class RealType = double>
shark::Gamma_distribution< RealType >::Gamma_distribution ( RealType  k,
RealType  theta 
)
inlineexplicit

Definition at line 53 of file Gamma.h.

Member Function Documentation

◆ k()

template<class RealType = double>
RealType shark::Gamma_distribution< RealType >::k ( ) const
inline

Definition at line 56 of file Gamma.h.

Referenced by shark::Gamma< RngType >::p(), and shark::Gamma< RngType >::theta().

◆ operator()()

template<class RealType = double>
template<class Engine >
result_type shark::Gamma_distribution< RealType >::operator() ( Engine &  eng)
inline

Definition at line 68 of file Gamma.h.

◆ reset()

template<class RealType = double>
void shark::Gamma_distribution< RealType >::reset ( )
inline

Definition at line 65 of file Gamma.h.

◆ theta()

template<class RealType = double>
RealType shark::Gamma_distribution< RealType >::theta ( ) const
inline

Definition at line 60 of file Gamma.h.

Referenced by shark::Gamma< RngType >::k(), and shark::Gamma< RngType >::p().

Friends And Related Function Documentation

◆ operator<<

template<class RealType = double>
template<class CharT , class Traits >
std::basic_ostream<CharT,Traits>& operator<< ( std::basic_ostream< CharT, Traits > &  os,
const Gamma_distribution< RealType > &  gd 
)
friend

Definition at line 102 of file Gamma.h.

◆ operator>>

template<class RealType = double>
template<class CharT , class Traits >
std::basic_istream<CharT,Traits>& operator>> ( std::basic_istream< CharT, Traits > &  is,
Gamma_distribution< RealType > &  gd 
)
friend

Definition at line 111 of file Gamma.h.


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