thermal_area {metafolio} | R Documentation |
Return desired squared deviation between desired area and actual area under a curve
Description
The function finds the lower and upper roots (where the thermal curve crosses
0) with the uniroot
function and then integrates the
area under the thermal curve with the integrate
function. This is useful as part of the optimization routine in
optim_thermal
.
Usage
thermal_area(
max_a,
desired_area,
optim_temp,
width_param,
lower = -5,
upper = 40
)
Arguments
max_a |
Maximum Ricker a productivity value |
desired_area |
Desired area under the thermal curve |
optim_temp |
Optimal temperature |
width_param |
The width parameter as a numeric value |
lower |
Lower bound to pass to |
upper |
Upper bound to pass to |
[Package metafolio version 0.1.2 Index]