R/sigmoid.R

Defines functions sigmoid

Documented in sigmoid

#' @title Sigmoid Function
#' @description Sigmoid function.
#' @author Alberto AlmuiƱa
#' @param x Values to compute.
#' @return
#' Returns the values of the sigmoid function.

sigmoid<-function(x){

  return(1/(1+exp(-x)))
}
AlbertoAlmuinha/LogisticRegression documentation built on Jan. 5, 2020, 9:18 a.m.