MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / CauchyGenerator

Method CauchyGenerator

inst/include/Rcpp/stats/random/rcauchy.h:31–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29public:
30
31 CauchyGenerator( double location_, double scale_) :
32 location(location_) , scale(scale_) {}
33
34 inline double operator()() const {
35 return location + scale * ::tan(M_PI * unif_rand()) ;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected