hill_function: hill_function

View source: R/transformations.R

hill_functionR Documentation

hill_function

Description

Hill Function

Usage

hill_function(v, k = 1, m = 5, abs = TRUE)

Arguments

v

Numeric vector

k

Numeric integer or decimal

m

Numeric integer or decimal

abs

Boolean to determine if diminishing scale m is a percentage or absolute value

Details

Applies the Hill Function 1 - (k^m)(k^m + v^m) on the input vector, v

Value

The transformed vector v

Examples

hill_function(c(1,0,0,0,10,0,0,0,20), k=10)
hill_function(c(1,0,0,0,10,0,0,0,20), k=0.1, abs = FALSE)
hill_function(c(1,0,0,0,10,0,0,0,20), k=10, m = 3)

linea documentation built on Sept. 15, 2022, 9:06 a.m.