Skip to contents

Uses a function stored as an attribute of x, by default retrieved from the instrument's firmware at the time of data acquisition or possibly a replacement set by the user.

Usage

linearize_counts(
  x,
  force.zero = TRUE,
  verbose = getOption("photobiology.verbose", default = FALSE)
)

Arguments

x

raw_spct object.

force.zero

A logical indicating whether to change negative count values to zero.

verbose

Logical Currently ignored.

Value

A raw_spct object containing the adjusted values, still as uncalibrated counts. The object is tagged with the with attribute "linearized" set to the function used for linearization.

Note

In contrast to other classes defined in package 'photobiology', class "raw_spct" can have more than one column of raw counts in cases where the intention is to merge these values as part of the processing at the time the calibration is applied. In other words these columns are not separate observations but instrumental replicates or bracketing readings part of the same "logical" or "effective" observation. The contents of any column whose name starts with "counts" will have the intrument response linearization function applied.