Rcpp Version 1.0.9
Rcpp::stats::WeibullGenerator Class Reference

#include <rweibull.h>

Inheritance diagram for Rcpp::stats::WeibullGenerator:
Collaboration diagram for Rcpp::stats::WeibullGenerator:

Public Member Functions

 WeibullGenerator (double shape_, double scale_)
 
double operator() () const
 

Private Attributes

double shape_inv
 
double scale
 

Additional Inherited Members

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

Detailed Description

Definition at line 28 of file rweibull.h.

Constructor & Destructor Documentation

◆ WeibullGenerator()

Rcpp::stats::WeibullGenerator::WeibullGenerator ( double  shape_,
double  scale_ 
)
inline

Definition at line 31 of file rweibull.h.

Member Function Documentation

◆ operator()()

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

Definition at line 34 of file rweibull.h.

References Rcpp::algorithm::log(), scale, shape_inv, and R::unif_rand().

Here is the call graph for this function:

Member Data Documentation

◆ scale

double Rcpp::stats::WeibullGenerator::scale
private

Definition at line 39 of file rweibull.h.

Referenced by operator()().

◆ shape_inv

double Rcpp::stats::WeibullGenerator::shape_inv
private

Definition at line 39 of file rweibull.h.

Referenced by operator()().


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