exponential_weight: Exponential Weight

Description Usage Arguments Details Examples

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)

mltools documentation built on May 2, 2019, 5:22 a.m.