Rcpp Version 1.0.7
Rcpp::stats::GeomGenerator Class Reference

#include <rgeom.h>

Inheritance diagram for Rcpp::stats::GeomGenerator:
Collaboration diagram for Rcpp::stats::GeomGenerator:

Public Member Functions

 GeomGenerator (double p)
double operator() () const

Private Attributes

double lambda

Additional Inherited Members

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

Detailed Description

Definition at line 28 of file rgeom.h.

Constructor & Destructor Documentation

◆ GeomGenerator()

Rcpp::stats::GeomGenerator::GeomGenerator ( double  p)

Definition at line 31 of file rgeom.h.

Member Function Documentation

◆ operator()()

double Rcpp::stats::GeomGenerator::operator() ( ) const

Definition at line 33 of file rgeom.h.

References R::exp_rand(), and lambda.

Here is the call graph for this function:

Member Data Documentation

◆ lambda

double Rcpp::stats::GeomGenerator::lambda

Definition at line 38 of file rgeom.h.

Referenced by operator()().

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