powered by
Negative exponential (Diminish returns)
diminish(v, m, abs = TRUE)
The transformed vector v
v
Numeric vector
Scale of diminishing as a numeric integer or decimal
Boolean to determine if diminishing scale m is a percentage or absolute value
m
Applies the negative exponential (1 - exp(-x/m)) on the input vector, v
diminish(c(1,0,0,0,1,0,0,0,2), 1) diminish(c(1,0,0,0,1,0,0,0,2), 1, FALSE)
Run the code above in your browser using DataLab