powered by
ef_fun returns amount of vehicles at each age
ef_fun
ef_fun( ef, type = "logistic", x = 1:length(ef), x0 = mean(ef), k = 1/4, L = max(ef) )
dataframe of age distrubution of vehicles at each street.
Numeric; numeric vector of emission factors.
Character; "logistic" by default so far.
Numeric; vector for ages of use.
Numeric; the x-value of the sigmoid's midpoint,
Numeric; the steepness of the curve.
Integer; the curve's maximum value.
https://en.wikipedia.org/wiki/Logistic_function
if (FALSE) { data(fe2015) CO <- ef_cetesb(p = "CO", veh = "PC_G") ef_logit <- ef_fun(ef = CO, x0 = 27, k = 0.4, L = 33) df <- data.frame(CO, ef_logit) colplot(df) }
Run the code above in your browser using DataLab