35 inline double dnorm(
double x,
double mu,
double sigma,
int lg) { return ::Rf_dnorm4(x, mu, sigma, lg); }
36 inline double pnorm(
double x,
double mu,
double sigma,
int lt,
int lg) { return ::Rf_pnorm5(x, mu, sigma, lt, lg); }
37 inline double qnorm(
double p,
double mu,
double sigma,
int lt,
int lg) { return ::Rf_qnorm5(p, mu, sigma, lt, lg); }
38 inline double rnorm(
double mu,
double sigma) { return ::Rf_rnorm(mu, sigma); }
39 inline void pnorm_both(
double x,
double *cum,
double *ccum,
int lt,
int lg) { return ::Rf_pnorm_both(x, cum, ccum, lt, lg); }
42 inline double dunif(
double x,
double a,
double b,
int lg) { return ::Rf_dunif(x, a, b, lg); }
43 inline double punif(
double x,
double a,
double b,
int lt,
int lg) { return ::Rf_punif(x, a, b, lt, lg); }
44 inline double qunif(
double p,
double a,
double b,
int lt,
int lg) { return ::Rf_qunif(p, a, b, lt, lg); }
45 inline double runif(
double a,
double b) { return ::Rf_runif(a, b); }
48 inline double dgamma(
double x,
double shp,
double scl,
int lg) { return ::Rf_dgamma(x, shp, scl, lg); }
49 inline double pgamma(
double x,
double alp,
double scl,
int lt,
int lg) { return ::Rf_pgamma(x, alp, scl, lt, lg); }
50 inline double qgamma(
double p,
double alp,
double scl,
int lt,
int lg) { return ::Rf_qgamma(p, alp, scl, lt, lg); }
51 inline double rgamma(
double a,
double scl) { return ::Rf_rgamma(a, scl); }
53 inline double log1pmx(
double x) { return ::Rf_log1pmx(x); }
55 inline double lgamma1p(
double a) { return ::Rf_lgamma1p(a); }
56 inline double logspace_add(
double lx,
double ly) { return ::Rf_logspace_add(lx, ly); }
57 inline double logspace_sub(
double lx,
double ly) { return ::Rf_logspace_sub(lx, ly); }
60 inline double dbeta(
double x,
double a,
double b,
int lg) { return ::Rf_dbeta(x, a, b, lg); }
61 inline double pbeta(
double x,
double p,
double q,
int lt,
int lg) { return ::Rf_pbeta(x, p, q, lt, lg); }
62 inline double qbeta(
double a,
double p,
double q,
int lt,
int lg) { return ::Rf_qbeta(a, p, q, lt, lg); }
63 inline double rbeta(
double a,
double b) { return ::Rf_rbeta(a, b); }
66 inline double dlnorm(
double x,
double ml,
double sl,
int lg) { return ::Rf_dlnorm(x, ml, sl, lg); }
67 inline double plnorm(
double x,
double ml,
double sl,
int lt,
int lg) { return ::Rf_plnorm(x, ml, sl, lt, lg); }
68 inline double qlnorm(
double p,
double ml,
double sl,
int lt,
int lg) { return ::Rf_qlnorm(p, ml, sl, lt, lg); }
69 inline double rlnorm(
double ml,
double sl) { return ::Rf_rlnorm(ml, sl); }
72 inline double dchisq(
double x,
double df,
int lg) { return ::Rf_dchisq(x,
df, lg); }
73 inline double pchisq(
double x,
double df,
int lt,
int lg) { return ::Rf_pchisq(x,
df, lt, lg); }
74 inline double qchisq(
double p,
double df,
int lt,
int lg) { return ::Rf_qchisq(p,
df, lt, lg); }
75 inline double rchisq(
double df) { return ::Rf_rchisq(
df); }
78 inline double dnchisq(
double x,
double df,
double ncp,
int lg) { return ::Rf_dnchisq(x,
df, ncp, lg); }
79 inline double pnchisq(
double x,
double df,
double ncp,
int lt,
int lg) { return ::Rf_pnchisq(x,
df, ncp, lt, lg); }
80 inline double qnchisq(
double p,
double df,
double ncp,
int lt,
int lg) { return ::Rf_qnchisq(p,
df, ncp, lt, lg); }
81 inline double rnchisq(
double df,
double lb) { return ::Rf_rnchisq(
df, lb); }
84 inline double df(
double x,
double df1,
double df2,
int lg) { return ::Rf_df(x, df1, df2, lg); }
85 inline double pf(
double x,
double df1,
double df2,
int lt,
int lg) { return ::Rf_pf(x, df1, df2, lt, lg); }
86 inline double qf(
double p,
double df1,
double df2,
int lt,
int lg) { return ::Rf_qf(p, df1, df2, lt, lg); }
87 inline double rf(
double df1,
double df2) { return ::Rf_rf(df1, df2); }
90 inline double dt(
double x,
double n,
int lg) { return ::Rf_dt(x, n, lg); }
91 inline double pt(
double x,
double n,
int lt,
int lg) { return ::Rf_pt(x, n, lt, lg); }
92 inline double qt(
double p,
double n,
int lt,
int lg) { return ::Rf_qt(p, n, lt, lg); }
93 inline double rt(
double n) { return ::Rf_rt(n); }
96 inline double dbinom(
double x,
double n,
double p,
int lg) { return ::Rf_dbinom(x, n, p, lg); }
97 inline double pbinom(
double x,
double n,
double p,
int lt,
int lg) { return ::Rf_pbinom(x, n, p, lt, lg); }
98 inline double qbinom(
double p,
double n,
double m,
int lt,
int lg) { return ::Rf_qbinom(p, n, m, lt, lg); }
99 inline double rbinom(
double n,
double p) { return ::Rf_rbinom(n, p); }
105 inline double dcauchy(
double x,
double lc,
double sl,
int lg) { return ::Rf_dcauchy(x, lc, sl, lg); }
106 inline double pcauchy(
double x,
double lc,
double sl,
int lt,
int lg) { return ::Rf_pcauchy(x, lc, sl, lt, lg); }
107 inline double qcauchy(
double p,
double lc,
double sl,
int lt,
int lg) { return ::Rf_qcauchy(p, lc, sl, lt, lg); }
108 inline double rcauchy(
double lc,
double sl) { return ::Rf_rcauchy(lc, sl); }
111 inline double dexp(
double x,
double sl,
int lg) { return ::Rf_dexp(x, sl, lg); }
112 inline double pexp(
double x,
double sl,
int lt,
int lg) { return ::Rf_pexp(x, sl, lt, lg); }
113 inline double qexp(
double p,
double sl,
int lt,
int lg) { return ::Rf_qexp(p, sl, lt, lg); }
114 inline double rexp(
double sl) { return ::Rf_rexp(sl); }
117 inline double dgeom(
double x,
double p,
int lg) { return ::Rf_dgeom(x, p, lg); }
118 inline double pgeom(
double x,
double p,
int lt,
int lg) { return ::Rf_pgeom(x, p, lt, lg); }
119 inline double qgeom(
double p,
double pb,
int lt,
int lg) { return ::Rf_qgeom(p, pb, lt, lg); }
120 inline double rgeom(
double p) { return ::Rf_rgeom(p); }
123 inline double dhyper(
double x,
double r,
double b,
double n,
int lg) { return ::Rf_dhyper(x, r, b, n, lg); }
124 inline double phyper(
double x,
double r,
double b,
double n,
int lt,
int lg) { return ::Rf_phyper(x, r, b, n, lt, lg); }
125 inline double qhyper(
double p,
double r,
double b,
double n,
int lt,
int lg) { return ::Rf_qhyper(p, r, b, n, lt, lg); }
126 inline double rhyper(
double r,
double b,
double n) { return ::Rf_rhyper(r, b, n); }
129 inline double dnbinom(
double x,
double sz,
double pb,
int lg) { return ::Rf_dnbinom(x, sz, pb, lg); }
130 inline double pnbinom(
double x,
double sz,
double pb,
int lt,
int lg) { return ::Rf_pnbinom(x, sz, pb, lt, lg); }
131 inline double qnbinom(
double p,
double sz,
double pb,
int lt,
int lg) { return ::Rf_qnbinom(p, sz, pb, lt, lg); }
132 inline double rnbinom(
double sz,
double pb) { return ::Rf_rnbinom(sz, pb); }
134 #if R_VERSION >= R_Version(3, 1, 2)
135 inline double dnbinom_mu(
double x,
double sz,
double mu,
int lg) { return ::Rf_dnbinom_mu(x, sz, mu, lg); }
136 inline double pnbinom_mu(
double x,
double sz,
double mu,
int lt,
int lg) { return ::Rf_pnbinom_mu(x, sz, mu, lt, lg); }
137 inline double qnbinom_mu(
double x,
double sz,
double mu,
int lt,
int lg) { return ::Rf_qnbinom_mu(x, sz, mu, lt, lg); }
142 inline double dpois(
double x,
double lb,
int lg) { return ::Rf_dpois(x, lb, lg); }
143 inline double ppois(
double x,
double lb,
int lt,
int lg) { return ::Rf_ppois(x, lb, lt, lg); }
144 inline double qpois(
double p,
double lb,
int lt,
int lg) { return ::Rf_qpois(p, lb, lt, lg); }
145 inline double rpois(
double mu) { return ::Rf_rpois(mu); }
148 inline double dweibull(
double x,
double sh,
double sl,
int lg) { return ::Rf_dweibull(x, sh, sl, lg); }
149 inline double pweibull(
double x,
double sh,
double sl,
int lt,
int lg) { return ::Rf_pweibull(x, sh, sl, lt, lg); }
150 inline double qweibull(
double p,
double sh,
double sl,
int lt,
int lg) { return ::Rf_qweibull(p, sh, sl, lt, lg); }
151 inline double rweibull(
double sh,
double sl) { return ::Rf_rweibull(sh, sl); }
154 inline double dlogis(
double x,
double lc,
double sl,
int lg) { return ::Rf_dlogis(x, lc, sl, lg); }
155 inline double plogis(
double x,
double lc,
double sl,
int lt,
int lg) { return ::Rf_plogis(x, lc, sl, lt, lg); }
156 inline double qlogis(
double p,
double lc,
double sl,
int lt,
int lg) { return ::Rf_qlogis(p, lc, sl, lt, lg); }
157 inline double rlogis(
double lc,
double sl) { return ::Rf_rlogis(lc, sl); }
160 inline double dnbeta(
double x,
double a,
double b,
double ncp,
int lg) { return ::Rf_dnbeta(x, a, b, ncp, lg); }
161 inline double pnbeta(
double x,
double a,
double b,
double ncp,
int lt,
int lg) { return ::Rf_pnbeta(x, a, b, ncp, lt, lg); }
162 inline double qnbeta(
double p,
double a,
double b,
double ncp,
int lt,
int lg) { return ::Rf_qnbeta(p, a, b, ncp, lt, lg); }
163 inline double rnbeta(
double a,
double b,
double np) { return ::Rf_rnbeta(a, b, np); }
166 inline double dnf(
double x,
double df1,
double df2,
double ncp,
int lg) { return ::Rf_dnf(x, df1, df2, ncp, lg); }
167 inline double pnf(
double x,
double df1,
double df2,
double ncp,
int lt,
int lg) { return ::Rf_pnf(x, df1, df2, ncp, lt, lg); }
168 inline double qnf(
double p,
double df1,
double df2,
double ncp,
int lt,
int lg) { return ::Rf_qnf(p, df1, df2, ncp, lt, lg); }
171 inline double dnt(
double x,
double df,
double ncp,
int lg) { return ::Rf_dnt(x,
df, ncp, lg); }
172 inline double pnt(
double x,
double df,
double ncp,
int lt,
int lg) { return ::Rf_pnt(x,
df, ncp, lt, lg); }
173 inline double qnt(
double p,
double df,
double ncp,
int lt,
int lg) { return ::Rf_qnt(p,
df, ncp, lt, lg); }
176 inline double ptukey(
double q,
double rr,
double cc,
double df,
int lt,
int lg) { return ::Rf_ptukey(q, rr, cc,
df, lt, lg); }
177 inline double qtukey(
double p,
double rr,
double cc,
double df,
int lt,
int lg) { return ::Rf_qtukey(p, rr, cc,
df, lt, lg); }
180 inline double dwilcox(
double x,
double m,
double n,
int lg) { return ::Rf_dwilcox(x, m, n, lg); }
181 inline double pwilcox(
double q,
double m,
double n,
int lt,
int lg) { return ::Rf_pwilcox(q, m, n, lt, lg); }
182 inline double qwilcox(
double x,
double m,
double n,
int lt,
int lg) { return ::Rf_qwilcox(x, m, n, lt, lg); }
183 inline double rwilcox(
double m,
double n) { return ::Rf_rwilcox(m, n); }
186 inline double dsignrank(
double x,
double n,
int lg) { return ::Rf_dsignrank(x, n, lg); }
187 inline double psignrank(
double x,
double n,
int lt,
int lg) { return ::Rf_psignrank(x, n, lt, lg); }
188 inline double qsignrank(
double x,
double n,
int lt,
int lg) { return ::Rf_qsignrank(x, n, lt, lg); }
189 inline double rsignrank(
double n) { return ::Rf_rsignrank(n); }
192 inline double gammafn(
double x) { return ::Rf_gammafn(x); }
193 inline double lgammafn(
double x) { return ::Rf_lgammafn(x); }
194 inline double lgammafn_sign(
double x,
int *sgn) { return ::Rf_lgammafn_sign(x, sgn); }
195 inline void dpsifn(
double x,
int n,
int kode,
int m,
double *ans,
int *nz,
int *ierr) { return ::Rf_dpsifn(x, n, kode, m, ans, nz, ierr); }
196 inline double psigamma(
double x,
double deriv) { return ::Rf_psigamma(x, deriv); }
197 inline double digamma(
double x) { return ::Rf_digamma(x); }
198 inline double trigamma(
double x) { return ::Rf_trigamma(x); }
199 inline double tetragamma(
double x) { return ::Rf_tetragamma(x); }
200 inline double pentagamma(
double x) { return ::Rf_pentagamma(x); }
202 inline double beta(
double a,
double b) { return ::Rf_beta(a, b); }
203 inline double lbeta(
double a,
double b) { return ::Rf_lbeta(a, b); }
205 inline double choose(
double n,
double k) { return ::Rf_choose(n, k); }
206 inline double lchoose(
double n,
double k) { return ::Rf_lchoose(n, k); }
209 inline double bessel_i(
double x,
double al,
double ex) { return ::Rf_bessel_i(x, al, ex); }
210 inline double bessel_j(
double x,
double al) { return ::Rf_bessel_j(x, al); }
211 inline double bessel_k(
double x,
double al,
double ex) { return ::Rf_bessel_k(x, al, ex); }
212 inline double bessel_y(
double x,
double al) { return ::Rf_bessel_y(x, al); }
213 inline double bessel_i_ex(
double x,
double al,
double ex,
double *bi) { return ::Rf_bessel_i_ex(x, al, ex, bi); }
214 inline double bessel_j_ex(
double x,
double al,
double *bj) { return ::Rf_bessel_j_ex(x, al, bj); }
215 inline double bessel_k_ex(
double x,
double al,
double ex,
double *bk) { return ::Rf_bessel_k_ex(x, al, ex, bk); }
216 inline double bessel_y_ex(
double x,
double al,
double *by) { return ::Rf_bessel_y_ex(x, al, by); }
220 inline double hypot(
double a,
double b) { return ::Rf_hypot(a, b); }
225 inline double expm1(
double x); { return ::Rf_expm1(x); }
228 inline double log1p(
double x); { return ::Rf_log1p(x); }
230 inline int imax2(
int x,
int y) { return ::Rf_imax2(x, y); }
231 inline int imin2(
int x,
int y) { return ::Rf_imin2(x, y); }
232 inline double fmax2(
double x,
double y) { return ::Rf_fmax2(x, y); }
233 inline double fmin2(
double x,
double y) { return ::Rf_fmin2(x, y); }
234 inline double sign(
double x) { return ::Rf_sign(x); }
235 inline double fprec(
double x,
double dg) { return ::Rf_fprec(x, dg); }
236 inline double fround(
double x,
double dg) { return ::Rf_fround(x, dg); }
237 inline double fsign(
double x,
double y) { return ::Rf_fsign(x, y); }
238 inline double ftrunc(
double x) { return ::Rf_ftrunc(x); }
double rlnorm(double ml, double sl)
double qnt(double p, double df, double ncp, int lt, int lg)
double fsign(double x, double y)
double qweibull(double p, double sh, double sl, int lt, int lg)
double pweibull(double x, double sh, double sl, int lt, int lg)
double pnchisq(double x, double df, double ncp, int lt, int lg)
double qlogis(double p, double lc, double sl, int lt, int lg)
double qcauchy(double p, double lc, double sl, int lt, int lg)
double bessel_i_ex(double x, double al, double ex, double *bi)
double rsignrank(double n)
double pnt(double x, double df, double ncp, int lt, int lg)
double dunif(double x, double a, double b, int lg)
double rlogis(double lc, double sl)
double dcauchy(double x, double lc, double sl, int lg)
double logspace_sub(double lx, double ly)
double dsignrank(double x, double n, int lg)
double qt(double p, double n, int lt, int lg)
double pwilcox(double q, double m, double n, int lt, int lg)
double fmax2(double x, double y)
double dnbinom(double x, double sz, double pb, int lg)
double ptukey(double q, double rr, double cc, double df, int lt, int lg)
double pnbeta(double x, double a, double b, double ncp, int lt, int lg)
double pgeom(double x, double p, int lt, int lg)
double pnbinom(double x, double sz, double pb, int lt, int lg)
double pgamma(double x, double alp, double scl, int lt, int lg)
double dnorm(double x, double mu, double sigma, int lg)
double dnbinom_mu(double x, double sz, double mu, int lg)
double qgeom(double p, double pb, int lt, int lg)
double pnf(double x, double df1, double df2, double ncp, int lt, int lg)
double rweibull(double sh, double sl)
double qchisq(double p, double df, int lt, int lg)
double pt(double x, double n, int lt, int lg)
double dlnorm(double x, double ml, double sl, int lg)
double trigamma(double x)
double lbeta(double a, double b)
double tetragamma(double x)
double bessel_j_ex(double x, double al, double *bj)
double qnbeta(double p, double a, double b, double ncp, int lt, int lg)
void rmultinom(int n, double *prob, int k, int *rn)
double dwilcox(double x, double m, double n, int lg)
double qnorm(double p, double mu, double sigma, int lt, int lg)
double fmin2(double x, double y)
double lgammafn_sign(double x, int *sgn)
double dnbeta(double x, double a, double b, double ncp, int lg)
double qbinom(double p, double n, double m, int lt, int lg)
double pf(double x, double df1, double df2, int lt, int lg)
double punif(double x, double a, double b, int lt, int lg)
double lgammafn(double x)
double plogis(double x, double lc, double sl, int lt, int lg)
double pexp(double x, double sl, int lt, int lg)
double dpois(double x, double lb, int lg)
double bessel_j(double x, double al)
double logspace_add(double lx, double ly)
double qnbinom_mu(double x, double sz, double mu, int lt, int lg)
double runif(double a, double b)
double dhyper(double x, double r, double b, double n, int lg)
double phyper(double x, double r, double b, double n, int lt, int lg)
double qnbinom(double p, double sz, double pb, int lt, int lg)
double rcauchy(double lc, double sl)
double dgamma(double x, double shp, double scl, int lg)
double rgamma(double a, double scl)
double qexp(double p, double sl, int lt, int lg)
double lchoose(double n, double k)
void pnorm_both(double x, double *cum, double *ccum, int lt, int lg)
double qunif(double p, double a, double b, int lt, int lg)
double qhyper(double p, double r, double b, double n, int lt, int lg)
double qnchisq(double p, double df, double ncp, int lt, int lg)
double qnf(double p, double df1, double df2, double ncp, int lt, int lg)
double qpois(double p, double lb, int lt, int lg)
double pcauchy(double x, double lc, double sl, int lt, int lg)
double fprec(double x, double dg)
double rnbeta(double a, double b, double np)
double choose(double n, double k)
double dbeta(double x, double a, double b, int lg)
double rhyper(double r, double b, double n)
double pnorm(double x, double mu, double sigma, int lt, int lg)
double hypot(double a, double b)
double qf(double p, double df1, double df2, int lt, int lg)
double df(double x, double df1, double df2, int lg)
double qbeta(double a, double p, double q, int lt, int lg)
double bessel_k_ex(double x, double al, double ex, double *bk)
double fround(double x, double dg)
double psignrank(double x, double n, int lt, int lg)
double qsignrank(double x, double n, int lt, int lg)
double pbinom(double x, double n, double p, int lt, int lg)
double dchisq(double x, double df, int lg)
double dexp(double x, double sl, int lg)
double qwilcox(double x, double m, double n, int lt, int lg)
double qgamma(double p, double alp, double scl, int lt, int lg)
double bessel_k(double x, double al, double ex)
double qtukey(double p, double rr, double cc, double df, int lt, int lg)
double plnorm(double x, double ml, double sl, int lt, int lg)
double rf(double df1, double df2)
double qlnorm(double p, double ml, double sl, int lt, int lg)
double rbinom(double n, double p)
double rwilcox(double m, double n)
double bessel_i(double x, double al, double ex)
double dt(double x, double n, int lg)
double rnbinom(double sz, double pb)
double pbeta(double x, double p, double q, int lt, int lg)
double dlogis(double x, double lc, double sl, int lg)
double dnf(double x, double df1, double df2, double ncp, int lg)
double bessel_y_ex(double x, double al, double *by)
double dbinom(double x, double n, double p, int lg)
double dweibull(double x, double sh, double sl, int lg)
double log1pexp(double x)
double dnchisq(double x, double df, double ncp, int lg)
double bessel_y(double x, double al)
double pnbinom_mu(double x, double sz, double mu, int lt, int lg)
double rnchisq(double df, double lb)
double pchisq(double x, double df, int lt, int lg)
double rnorm(double mu, double sigma)
double beta(double a, double b)
void dpsifn(double x, int n, int kode, int m, double *ans, int *nz, int *ierr)
double psigamma(double x, double deriv)
double rbeta(double a, double b)
double pentagamma(double x)
double ppois(double x, double lb, int lt, int lg)
double dgeom(double x, double p, int lg)
double lgamma1p(double a)
double dnt(double x, double df, double ncp, int lg)