What is the error in redox potential at a given redox potential (mV), given some parameters of R and the error in R?

Error_E(E, Rmin, Rmax, delta, e0, error_R, temp = 295.15)

Arguments

E

the redox potential

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

error_R

a function that, given an R, returns the error in that R

temp

the temperature at which measurements were made

Value

A list with (1) 'E', the given redox potential, (2) 'larger_E', the largest possible E, at the given error (3) 'smaller_E', the smallest possible E, at the given error (4) 'max_error' the largest possible difference between the observed and expected E

Examples

Error_E(E = -275, Rmin = 1, Rmax = 5, delta = 0.2, e0 = -275, error_R = function(x) 0.02 * x)
#> $E #> [1] -275 #> #> $larger_E #> [1] -274.2516 #> #> $smaller_E #> [1] -275.7789 #> #> $max_error #> [1] 0.778922 #>