logistic: Logistic functions

View source: R/logistic.R

logisticR Documentation

Logistic functions

Description

The logisic function describe the classical logistic function,

Usage

logistic(x, yneg = -1, ypos = 1, lambda = 1, pow = 1)

logistic2(x, yneg = -1, ypos = 1, lambda = 1, pow = 1, yzer = 0)

Arguments

x

a numerical vector.

yneg

asymptotic values when x tends to -Inf.

ypos

asymptotic values when y tends to -Inf.

lambda

scalar coefficient.

pow

x exponent.

yzer

values (for logistic2 only).

Details

The classic logistic equation is:

f(x) = (ypos-yneg)/(1+exp(-λ x^pow))

A slightly different version is:

f(x) = yneg + 1/(1/(ypos-yneg)+(1/(yzer-yneg)-1/ypos-yneg)exp(-λ x^pow))

Value

A numeric vector.

Functions

  • logistic2(): A slightly different logistic function.

Source

https://en.wikipedia.org/wiki/Logistic_functionwikipedia.org/wiki/Logistic_function


inSileco/letiRmisc documentation built on Sept. 16, 2022, 2:19 p.m.