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

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

#include <Discrete.h>

Inheritance diagram for Eigen::Rand::GeometricGen< _Scalar >:
Collaboration diagram for Eigen::Rand::GeometricGen< _Scalar >:

Public Types

using Scalar = _Scalar
 

Public Member Functions

 GeometricGen (double _p)
 Construct a new Geometric 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)
 
- Public Member Functions inherited from Eigen::Rand::GenBase< GeometricGen< _Scalar >, _Scalar >
const CwiseNullaryOp< internal::scalar_rng_adaptor< GeometricGen< _Scalar > &, _Scalar, Urng >, const Derived > generate (Index rows, Index cols, Urng &&urng)
 generate random values from its distribution More...
 
const CwiseNullaryOp< internal::scalar_rng_adaptor< GeometricGen< _Scalar > &, _Scalar, Urng >, const Derived > generateLike (const Derived &o, Urng &&urng)
 generate random values from its distribution More...
 

Detailed Description

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

Generator of integers on a geometric distribution.

Template Parameters
_Scalar

Constructor & Destructor Documentation

◆ GeometricGen()

template<typename _Scalar >
Eigen::Rand::GeometricGen< _Scalar >::GeometricGen ( double  _p)
inline

Construct a new Geometric Generator.

Parameters
_pprobability of a trial generating true

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