gen_tpc: Generate TPC

Description Usage Arguments Value Examples

View source: R/gen.R

Description

This function generates a predicted thermal performance curve based on model fit data.

Usage

1
gen_tpc(fit)

Arguments

fit

A model summary dataset with a column for "model" used and columns for each of the parameters.

Value

A predicted TPC dataset with a temperature (t) and performance (p) columns

Examples

1
2
3
4
5
tpd <- gen_base(25, 4, 2, -0.25, 0.15, 10, 0.5, 27, 20)
fit <- fit_tpd(tpd)
curve <- gen_tpc(fit) # Generate the TPC from the model fit
plot(tpd, pch = 19, xlab = "Temperature", ylab = "Performance")
lines(curve,lwd = 2)

ggcostoya/momentum documentation built on Feb. 14, 2021, 6:12 p.m.