R/dsdx_asymp_off_inverse.R

Defines functions dsdx_asymp_off_inverse

# Leibniz's notation for computing the curvic length on inverse Asymptotic
# Model with an Offse
#
# Leibniz's notation for computing the curvic length on inverse Asymptotic
# Model with an Offse
#
# expression : sqrt(1+(1/Asym/(1 - input/Asym)/(exp(lrc)))^2)
#
# @param input numeric vector of data values
# @param parms numeric vector, parameters with given names: "Asym", "lrc",
# "c0"
# @seealso \code{\link{SSasympOff}}
# @references Jose Pinheiro and Douglas Bates
# @keywords math
# @examples
#
# x <-  seq(0.1,1,length=20)
# parms <- c(Asym = 2, R0 = 0.2, lrc = 0.3)
# integrate(function(x) { dsdx_asymp_off_inverse(input = x, parms = parms ) }, 
# lower = 0, upper = 0.5)
#
#' @importFrom stats integrate
dsdx_asymp_off_inverse <- function(input, parms) {
  .value <- sqrt(1+(1/parms["Asym"]/(1 - input/parms["Asym"])/
                      (exp(parms["lrc"])))^2)
  .value
}
ropensci/DoOR.functions documentation built on Feb. 22, 2024, 9:44 a.m.