This function returns the blue:green photon ratio of a light source spectrum.

B_G(spct, std = "Sellaro", use.cached.mult = FALSE,
  use.hinges = TRUE)

Arguments

spct

an object of class "source.spct"

std

select which definition of blue and green should be used, defaults to "Sellaro"

use.cached.mult

logical indicating whether multiplier values should be cached between calls

use.hinges

logical indicating whether to use hinges to reduce interpolation errors

Value

a single numeric nondimensional value giving the B:G photon ratio, with name attribute set to the name of the wavebands, with "(q:q)" appended.

Examples

B_G(sun.spct)
#> Blue.Sellaro: Green.Sellaro(q:q) #> 0.8596887 #> attr(,"radiation.unit") #> [1] "q:q ratio"