Rcpp Version 1.0.9
Rcpp::stats::ExpGenerator Class Reference

#include <rexp.h>

Inheritance diagram for Rcpp::stats::ExpGenerator:
Collaboration diagram for Rcpp::stats::ExpGenerator:

Public Member Functions

 ExpGenerator (double scale_)
 
double operator() () const
 

Private Attributes

double scale
 

Additional Inherited Members

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

Detailed Description

Definition at line 28 of file rexp.h.

Constructor & Destructor Documentation

◆ ExpGenerator()

Rcpp::stats::ExpGenerator::ExpGenerator ( double  scale_)
inline

Definition at line 31 of file rexp.h.

Member Function Documentation

◆ operator()()

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

Definition at line 33 of file rexp.h.

References R::exp_rand(), and scale.

Here is the call graph for this function:

Member Data Documentation

◆ scale

double Rcpp::stats::ExpGenerator::scale
private

Definition at line 38 of file rexp.h.

Referenced by operator()().


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