create_error_df_general: Creates a dataframe of errors at given inaccuracies

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Creates a dataframe of errors at given inaccuracies

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
create_error_df_general(
  inaccuracies,
  param_name,
  param_error_fun,
  param_min,
  param_max,
  Rmin,
  Rmax,
  delta,
  midpoint,
  ...,
  temp = 295.15,
  by = 0.01
)

Arguments

inaccuracies

A vector of inaccuracies (e.g. 0.02 for 2% error), always relative

param_name

The name of the parameter

param_error_fun

The function that finds the error in this parameter

param_min

The minimum param for which to record error

param_max

The maximum param in mV, for which to record error

Rmin

the minimum possible ratiometric fluorescence

Rmax

the maximum possible ratiometric fluorescence

delta

the ratiometric fluorescence in the first wavelength

midpoint

the sensor's midpoint

...

Additional arguments to pass into the param_error_fun (before temperature)

temp

(optional, default: 295.15) the temperature (in Kelvin) at which measurements were made

by

(optional, default: 0.01) The granularity of the error table–e.g., by = 0.01 would record 275 and 275.01, etc.

Value

A dataframe of errors with columns: param: the value of the param 'Error': the error in this param 'Inaccuracy': The inaccuracy of the measurements (relative to R).

Examples

1
create_error_df_general(c(0.01, 0.02), "E", Error_E, -300, -200, 1, 5, 0.2, -275)

julianstanley/SensorOverlord documentation built on Oct. 19, 2020, 2:29 p.m.