| 29 | public: |
| 30 | |
| 31 | NBinomGenerator( double siz_, double prob_ ) : |
| 32 | siz(siz_), lambda( (1-prob_)/prob_ ) {} |
| 33 | |
| 34 | inline double operator()() const { |
| 35 | return ::Rf_rpois( ::Rf_rgamma( siz, lambda ) ) ; |
nothing calls this directly
no outgoing calls
no test coverage detected