R/logistic.R

Defines functions logistic.pdf logistic.cdf

Documented in logistic.cdf

#'cLogistic
#'
#'Logistic function is a sigmoid type function. It is the part of CDF.
#'\cr
#'It's CDF formula is: y = 1 / ( 1 + exp(-x))
#'\cr
#'It's PDF formula is: y = exp(x) / ( 1 + exp(x))^2
#'@param x Vector of x parametres
#'@return Vector of result vaues
#'@export
logistic.cdf <- function(x) {
  return(1 / ( 1 + exp(-x)))
}
logistic.pdf <- function(x) {
  return(exp(x) / ( 1 + exp(x))^2 )
}
LuchTiarna/EFPFF documentation built on Oct. 4, 2017, 4:03 p.m.