Learn R Programming

LightFitR (version 1.0.0)

internal.closestIntensities: Internal function. Find the intensities corresponding to the closest irradiance match between intended and calibration.

Description

Internal function. Find the intensities corresponding to the closest irradiance match between intended and calibration.

Usage

internal.closestIntensities(
  irradiance_matrix,
  calibration_df,
  peaks = LightFitR::helio.dyna.leds$wavelength
)

Value

Matrix of closest intensities, in the same format as `irradiance_matrix`

Arguments

irradiance_matrix

Matrix of intended irradiances. rows = leds and columns = events

calibration_df

Dataframe of calibration data generated by internal.calibCombine

peaks

Vector of length 8 or 9. Containing wavelengths at which each LED peaks.

Examples

Run this code

# Format calibration data correctly
calib <- LightFitR::calibration[, c(3, 5, 4, 6)]

# Run function
internal.closestIntensities(LightFitR::target_irradiance, calib)

Run the code above in your browser using DataLab