View source: R/Simulate_Data.R
sigmoid_sharp | R Documentation |
Compute a sharp sigmoid function.
sigmoid_sharp(x, loc = 0, ...)
x |
a numerical vector, time points. |
loc |
a numerical value (optional), the time of the sharp. |
... |
Arguments (optional) for the function sigmoid. |
see the function sim_x
.
a numerical vector.
## Test 1 :
x <- seq(-7,7,0.1)
y <- sigmoid_sharp(x)
plot(x,y,type="l",main="Sharp sigmoid")
## Test 2 :
x <- seq(-7,7,0.1)
y <- sigmoid_sharp(x,loc=3)
y2 <- sigmoid_sharp(x,loc=3,asym=0.5)
y3 <- sigmoid_sharp(x,loc=3,v = 5)
plot(x,y,type="l",main="Other sharp sigmoids")
lines(x,y2,col=2)
lines(x,y3,col=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.