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), verbose = TRUE )
numeric vector.
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.
Logical; to show the equation.
https://en.wikipedia.org/wiki/Logistic_function
if (FALSE) { CO <- ef_cetesb(p = "CO", veh = "PC_G") ef_logit <- ef_fun(ef = CO, x0 = 27, k = 0.4, L = max(CO)) df <- data.frame(CO, ef_logit) colplot(df) }
Run the code above in your browser using DataLab