create_error_df_redox: Creates a dataframe of errors in redox potential at given...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Creates a dataframe of errors in redox potential at given inaccuracies

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
create_error_df_redox(
  inaccuracies,
  Emin,
  Emax,
  Rmin,
  Rmax,
  delta,
  e0,
  temp = 295.15,
  by = 0.01
)

Arguments

inaccuracies

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

Emin

The minimum redox potential, in mV, for which to record error

Emax

The maximum redox potential, 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

e0

the sensor's midpoint potential

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: 'E': the redox potential (mV), 'Error': the error in this redox potential (mV) 'Inaccuracy': The inaccuracy of the measurements (relative to R).

Examples

1
create_error_df_redox(c(0.01, 0.02), -300, -200, 1, 5, 0.2, -275)

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