Inserting wavelengths values immediately before and after a discontinuity in
the SWF, greatly reduces the errors caused by interpolating the weighted
irradiance during integration of the effective spectral irradiance. This is
specially true when data have a large wavelength step size. This fucntion
differs from insert_hinges()
in that it returns a vector of y
values instead of a tibble
.
v_insert_hinges(x, y, h)
numeric array (sorted in increasing order)
numeric array
a numeric array giving the wavelengths at which the y values should be inserted by interpolation, no interpolation is indicated by an empty array (numeric(0))
a numeric vector of y
values