Description Usage Arguments Value Examples
Gaussian predictor function (extracted from Angilletta 2006).
1 | pred_gaussian(x, s, a, b)
|
x |
A vector of values. |
s |
Scaling parameter. |
a |
Function prameter (roughly representing mean). |
b |
Function parameter (roughly representing sd). |
A vector of predicted values.
1 2 3 4 5 6 7 8 9 10 11 12 13 | tseq <- seq(0,100,by=0.1) # Mock temperature se
tpd <- gen_base(25, 4, 2, -0.25, 0.15, 10, 0.5, 27, 20) # Generate data
# Predictor functions
gauss <- pred_gaussian(tseq,9.313,24.215,3.421) # Gaussian predictor function
emg <- pred_emg(tseq,18.2635,24.113,3.56350,0.09797)
weibull <- pred_weibull(tseq, 9.665, 24.66, 18330.366, 6362.136)
#Plotting
plot(tpd,pch=19)
lines(tseq,emg, type = "l", lwd = 2, col = "grey")
lines(tseq, weibull, type = "l", lwd = 1, col = "grey")
lines(tseq,gauss,type="l", lwd = 2, col = "black")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.