Dark.Rcheck/00_pkg_src/Dark/R/H.R

#' @export 

H <- function(x, k = 100, t) {
# x is the measured time
# k is the transition constant, set arbitrarily high
# t is the time at which the transition occurs

	round(1/(1 + exp(-2 * k * (x - t))), 1)
}
emkayoh/Dark documentation built on Jan. 22, 2025, 3:17 a.m.