exponential_weight: Exponential Weight

Description Usage Arguments Details Examples

View source: R/exponential_weight.R

Description

Generate exponential weights

Usage

1
exponential_weight(k, base = exp(1), offset = 0, slope = 0.1)

Arguments

k

1-base^(offset-slope*k)

base

1-base^(offset-slope*k)

offset

1-base^(offset-slope*k)

slope

1-base^(offset-slope*k)

Details

Returns a weight based on the formula 1-base^(offset-slope*k)

Examples

1
2
3
exponential_weight(1:3, slope=.1)
exponential_weight(1:3, slope=1)
exponential_weight(1:3, slope=10)

ben519/mltools documentation built on Sept. 22, 2021, 4:30 p.m.