Image Component Library (ICL)
Public Member Functions | Private Attributes | List of all members
icl::utils::GRandClip Class Reference

lightweight Random generator class for gaussian distributed numbers clipped to a given range More...

#include <Random.h>

Public Member Functions

 GRandClip (icl64f mean, icl64f var, const Range64f &range)
 Create with optionally given mean and variance. More...
 
 operator icl64f () const
 returns gaussRandom(this->mean,this->var) More...
 

Private Attributes

icl64f mean
 
icl64f var
 
Range64f range
 

Detailed Description

lightweight Random generator class for gaussian distributed numbers clipped to a given range

See also
URand

Constructor & Destructor Documentation

◆ GRandClip()

icl::utils::GRandClip::GRandClip ( icl64f  mean,
icl64f  var,
const Range64f &  range 
)
inline

Create with optionally given mean and variance.

Member Function Documentation

◆ operator icl64f()

icl::utils::GRandClip::operator icl64f ( ) const
inline

returns gaussRandom(this->mean,this->var)

Member Data Documentation

◆ mean

icl64f icl::utils::GRandClip::mean
private

◆ range

Range64f icl::utils::GRandClip::range
private

◆ var

icl64f icl::utils::GRandClip::var
private

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