R/sigmoid.R

Defines functions sigmoid

Documented in sigmoid

#' @title sigmoid activation function
#' @param x a real number
#' @return sigmoid value
#' @examples sigmoid(10)
#' @keywords methods models
#' @export
sigmoid<- function(x) {
 return(1/(1+(exp(-x))))
}

Try the EMJMCMC package in your browser

Any scripts or data that you put into this service are public.

EMJMCMC documentation built on June 22, 2024, 11:34 a.m.