twSmoothSwitch: twSmoothSwitch

Description Usage Arguments Value Author(s)

View source: R/odeUtil.R

Description

Smooth increase from 0 to 1 around b.

Usage

1
2
twSmoothSwitch(x, b = 0, smooth.range.width = 0.1 * 
    b)

Arguments

x

numeric vector: times to evaluate

b

numeric scalar: time of switch

smooth.range.width

width of smooth increase

Value

0 for x <= b - r/2
sin(x-b)/r*pi for b-r/2 <= x <= b+r/2
1 for b - r/2 <= x

Author(s)

Thomas Wutzler


twMisc documentation built on May 2, 2019, 6:11 p.m.