gen_tpd: Generate a thermal-performance data set

Description Usage Arguments Value Examples

View source: R/gen_tpd.R

Description

Generates a thermal-performance data set from a list of thermal performance traits

Usage

1
gen_tpd(Topt, CTmax, CTmin, Pmax, Pmin, Error, Samples, Degree)

Arguments

Topt

The thermal optimum.

CTmax

The critical thermal maximum. Needs to be > Topt

CTmin

The critical thermal minimum. Needs to be < Topt

Pmax

The maximal performance capacity.

Pmin

The mimimal performance capacity. Needs to be < Pmax

Error

The amount of error/noise to be introduced to generate unique data. In units of standard deviation.

Samples

Number of samples to be extracted.

Degree

Degree of the polynomial regression that will be created to extract the data.

Value

A dataset of two columns: "T" for temperature and "P" for performance.

Examples

1
2
3
4
5
data <- gen_tpd(Topt = 25, CTmax = 30, CTmin = 20, Pmax = 10, Pmin = 0, Error = 0.5, Samples = 10, Degree = 3)

data

plot(data)

ggcostoya/tpcurves2 documentation built on Jan. 1, 2021, 2:19 a.m.