22 #ifndef Rcpp__stats__cauchy_h
23 #define Rcpp__stats__cauchy_h
29 return ::Rf_dcauchy(x,0.0,1.0,
give_log) ;
33 return ::Rf_dcauchy(x,location,1.0,
give_log) ;
36 inline double pcauchy_0(
double x,
int lower_tail,
int log_p) {
37 return ::Rf_pcauchy(x,0.0,1.0,lower_tail, log_p) ;
40 inline double pcauchy_1(
double x,
double location,
int lower_tail,
int log_p) {
41 return ::Rf_pcauchy(x,location,1.0,lower_tail, log_p) ;
44 inline double qcauchy_0(
double p,
int lower_tail,
int log_p) {
45 return ::Rf_qcauchy(p, 0.0, 1.0, lower_tail, log_p ) ;
47 inline double qcauchy_1(
double p,
double location,
int lower_tail,
int log_p) {
48 return ::Rf_qcauchy(p, location, 1.0, lower_tail, log_p ) ;
57 RCPP_DPQ_2(cauchy,::Rf_dcauchy,::Rf_pcauchy,::Rf_qcauchy)
#define RCPP_DPQ_2(__NAME__, __D__, __P__, __Q__)
#define RCPP_DPQ_1(__NAME__, __D__, __P__, __Q__)
#define RCPP_DPQ_0(__NAME__, __D__, __P__, __Q__)
double qcauchy_0(double p, int lower_tail, int log_p)
double qcauchy_1(double p, double location, int lower_tail, int log_p)
double dcauchy_1(double x, double location, int give_log)
double pcauchy_1(double x, double location, int lower_tail, int log_p)
double pcauchy_0(double x, int lower_tail, int log_p)
double dcauchy_0(double x, int give_log)