EigenRand  0.3.0
Eigen::Rand::BinomialGen< _Scalar > Class Template Reference

Generator of integers on a binomial distribution. More...

#include <Discrete.h>

Public Types

using Scalar = _Scalar
 

Public Member Functions

 BinomialGen (_Scalar _trials=1, double _p=0.5)
 Construct a new Binomial Generator. More...
 
template<typename Rng >
EIGEN_STRONG_INLINE const _Scalar operator() (Rng &&rng)
 
template<typename Packet , typename Rng >
EIGEN_STRONG_INLINE const Packet packetOp (Rng &&rng)
 

Detailed Description

template<typename _Scalar>
class Eigen::Rand::BinomialGen< _Scalar >

Generator of integers on a binomial distribution.

Template Parameters
_Scalar

Constructor & Destructor Documentation

◆ BinomialGen()

template<typename _Scalar >
Eigen::Rand::BinomialGen< _Scalar >::BinomialGen ( _Scalar  _trials = 1,
double  _p = 0.5 
)
inline

Construct a new Binomial Generator.

Parameters
_trialsthe number of trials
_pprobability of a trial generating true

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