Rcpp Version 1.0.9
Rcpp::stats::UnifGenerator Class Reference

#include <runif.h>

Inheritance diagram for Rcpp::stats::UnifGenerator:
Collaboration diagram for Rcpp::stats::UnifGenerator:

Public Member Functions

 UnifGenerator (double min_=0.0, double max_=1.0)
 
double operator() () const
 

Private Attributes

double min
 
double diff
 

Additional Inherited Members

- Public Types inherited from Rcpp::Generator< double >
typedef double r_generator
 

Detailed Description

Definition at line 28 of file runif.h.

Constructor & Destructor Documentation

◆ UnifGenerator()

Rcpp::stats::UnifGenerator::UnifGenerator ( double  min_ = 0.0,
double  max_ = 1.0 
)
inline

Definition at line 31 of file runif.h.

Member Function Documentation

◆ operator()()

double Rcpp::stats::UnifGenerator::operator() ( ) const
inline

Definition at line 34 of file runif.h.

References diff, min, and R::unif_rand().

Here is the call graph for this function:

Member Data Documentation

◆ diff

double Rcpp::stats::UnifGenerator::diff
private

Definition at line 42 of file runif.h.

Referenced by operator()().

◆ min

double Rcpp::stats::UnifGenerator::min
private

Definition at line 41 of file runif.h.

Referenced by operator()().


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