shark::DiffGeometric< RngType > Class Template Reference

Random variable with diff geometric distribution. More...

#include <shark/Rng/DiffGeometric.h>

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

Public Member Functions

 DiffGeometric (RngType &rng, double mean=0.5)
 
double operator() (double mean)
 
double mean () const
 
void mean (double newMean)
 
double p (double x) const
 

Detailed Description

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

Random variable with diff geometric distribution.

Definition at line 99 of file DiffGeometric.h.

Constructor & Destructor Documentation

◆ DiffGeometric()

template<typename RngType = shark::DefaultRngType>
shark::DiffGeometric< RngType >::DiffGeometric ( RngType &  rng,
double  mean = 0.5 
)
inline

Definition at line 105 of file DiffGeometric.h.

Member Function Documentation

◆ mean() [1/2]

template<typename RngType = shark::DefaultRngType>
double shark::DiffGeometric< RngType >::mean ( ) const
inline

Definition at line 117 of file DiffGeometric.h.

◆ mean() [2/2]

template<typename RngType = shark::DefaultRngType>
void shark::DiffGeometric< RngType >::mean ( double  newMean)
inline

Definition at line 121 of file DiffGeometric.h.

◆ operator()()

template<typename RngType = shark::DefaultRngType>
double shark::DiffGeometric< RngType >::operator() ( double  mean)
inline

Definition at line 111 of file DiffGeometric.h.

◆ p()

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

Definition at line 126 of file DiffGeometric.h.

References shark::mean().


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