Description Usage Arguments Value Author(s)
Smooth increase from 0 to 1 around b.
1 2 | twSmoothSwitch(x, b = 0, smooth.range.width = 0.1 *
b)
|
x |
numeric vector: times to evaluate |
b |
numeric scalar: time of switch |
smooth.range.width |
width of smooth increase |
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
Thomas Wutzler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.