linearFun {virtualspecies}R Documentation

Linear function

Description

A simple linear function of the form

ax+b

Usage

linearFun(x, a, b)

Arguments

x

a numeric value or vector

a

a numeric value or vector

b

a numeric value or vector

Value

a numeric value or vector resulting from the function

Author(s)

Boris Leroy leroy.boris@gmail.com

Maintainer: Boris Leroy leroy.boris@gmail.com

See Also

logisticFun, quadraticFun

Examples

x <- 1:100
y <- linearFun(x, a = 0.5, b = 0)
plot(y ~ x, type = "l")

[Package virtualspecies version 1.6 Index]