FIMS  v0.8.0
Loading...
Searching...
No Matches
rcpp_math.hpp File Reference

The Rcpp interface to declare different mathematical functions that are written in C++ but can be used within R. More...

Go to the source code of this file.

Functions

double logit_rcpp (double a, double b, double x)
 A rcpp interface to the logit function.
 
double inv_logit_rcpp (double a, double b, double logit_x)
 A rcpp interface to the inverse-logit function.
 

Detailed Description

The Rcpp interface to declare different mathematical functions that are written in C++ but can be used within R.

Function Documentation

◆ inv_logit_rcpp()

double inv_logit_rcpp ( double  a,
double  b,
double  logit_x 
)

A rcpp interface to the inverse-logit function.

Parameters
aLower bound of the logit function, typically 0.0.
bUpper bound of the logit function, typically 1.0.
logit_xA single numeric value (double) in real space.
Returns
A double in the bounded space rather than real space.

◆ logit_rcpp()

double logit_rcpp ( double  a,
double  b,
double  x 
)

A rcpp interface to the logit function.

Parameters
aLower bound of the logit function, typically 0.0.
bUpper bound of the logit function, typically 1.0.
xA single numeric value (double) to be transformed on the real line.
Returns
A double in real space rather than the bounded space.