Apply the Modified Beer-Lambert Law to delta oxy values to calculate the concentration changes of HbO and HbR.
Source:R/apply_mbll.R
apply_mbll.RdThis function applies the Modified Beer-Lambert Law to delta oxy values to calculate the concentration changes of HbO and HbR. It does so using the extinction coefficients of HbO and HbR at the two wavelengths that were calculated using the get_ext_values function.
Arguments
- e_matrix
A matrix with the extinction coefficients of HbO and HbR at the two wavelengths. This should be the output of the
get_ext_valuesfunction.- dpf
The differential pathlength factor. The default is 6. This can be changed if the dpf is known to be different.
- l
The distance between the light source and the detector (in cm). The default is 2.5cm. This can be changed if the distance is known to be different.
- delta_od
A dataframe with the delta_od values. This should be the output of the
create_delta_odfunction.
Examples
if (FALSE) { # \dontrun{
# Assuming that the delta_od values have been calculated using the \code{\link{create_delta_od}} function and the extinction coefficients have been calculated using the \code{\link{get_ext_values}} function. dpf is set to 6 and l is set to 2.5.
applyMBLL(delta_ods, e_matrix, dpf = 6, l = 2.5)
} # }