R/sigmoid.R

Defines functions sigmoid

Documented in sigmoid

#' sigmoid
#'
#'
#' Takes in a vector and applies the sigmoid function elementwise to that vector
#'
#' @name sigmoid
#' @param x : numeric vector
#' @return sigmoid(x)
#' @keywords internal

sigmoid <- function(x) {
    1/(1 + exp(-x))
}

Try the PAIRADISE package in your browser

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

PAIRADISE documentation built on Nov. 8, 2020, 8:22 p.m.