Rcpp Version 0.12.12
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
 
- Public Member Functions inherited from Rcpp::RNGScope
 RNGScope ()
 
 ~RNGScope ()
 

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

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

Definition at line 31 of file runif.h.

Member Function Documentation

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

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

Definition at line 42 of file runif.h.

Referenced by operator()().

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: