24#ifndef Rcpp__stats__exp_h
25#define Rcpp__stats__exp_h
34 if (
ISNAN(x))
return x + 1.0;
44 if (
ISNAN(p))
return p + 1.0;
56 if (
ISNAN(x))
return x + 1.0;
66 ? (x > -
M_LN2 ? ::log(-::expm1(x)) : ::log1p(-::exp(x)))
80template <
bool NA,
typename T>
85template <
bool NA,
typename T>
90template <
bool NA,
typename T>
#define RCPP_DPQ_0(__NAME__, __D__, __P__, __Q__)
double d_exp_0(double x, int give_log)
double p_exp_0(double x, int lower_tail, int log_p)
double q_exp_0(double p, int lower_tail, int log_p)
stats::D1< REALSXP, NA, T > dexp(const Rcpp::VectorBase< REALSXP, NA, T > &x, double shape, bool log=false)
stats::Q1< REALSXP, NA, T > qexp(const Rcpp::VectorBase< REALSXP, NA, T > &x, double shape, bool lower=true, bool log=false)
stats::P1< REALSXP, NA, T > pexp(const Rcpp::VectorBase< REALSXP, NA, T > &x, double shape, bool lower=true, bool log=false)