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

Generator of reals on a normal distribution. More...

#include <NormalExp.h>

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

Public Types

using Scalar = _Scalar
 

Public Member Functions

 NormalGen (_Scalar _mean=0, _Scalar _stdev=1)
 Construct a new normal generator. More...
 
 NormalGen (const NormalGen &)=default
 
 NormalGen (NormalGen &&)=default
 
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< NormalGen< _Scalar >, _Scalar >
const CwiseNullaryOp< internal::scalar_rng_adaptor< NormalGen< _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< NormalGen< _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::NormalGen< _Scalar >

Generator of reals on a normal distribution.

Template Parameters
_Scalar

Constructor & Destructor Documentation

◆ NormalGen()

template<typename _Scalar >
Eigen::Rand::NormalGen< _Scalar >::NormalGen ( _Scalar  _mean = 0,
_Scalar  _stdev = 1 
)
inline

Construct a new normal generator.

Parameters
_meanmean of the distribution
_stdevstandard deviation of the distribution

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