These functions return a spectral object of the same class as the one supplied as argument but with the spectral data rescaled.
fscale(x, ...)# S3 method for default
fscale(x, ...)
# S3 method for source_spct
fscale(x, range = NULL, f = "mean", target = 1,
unit.out = getOption("photobiology.radiation.unit", default = "energy"),
...)
# S3 method for response_spct
fscale(x, range = NULL, f = "mean", target = 1,
unit.out = getOption("photobiology.radiation.unit", default = "energy"),
...)
# S3 method for filter_spct
fscale(x, range = NULL, f = "mean", target = 1,
qty.out = getOption("photobiology.filter.qty", default = "transmittance"),
...)
# S3 method for reflector_spct
fscale(x, range = NULL, f = "mean", target = 1,
qty.out = NULL, ...)
# S3 method for raw_spct
fscale(x, range = NULL, f = "mean", target = 1, ...)
# S3 method for cps_spct
fscale(x, range = NULL, f = "mean", target = 1, ...)
# S3 method for generic_spct
fscale(x, range = NULL, f = "mean", target = 1,
col.names, ...)
# S3 method for source_mspct
fscale(x, range = NULL, f = "mean", target = 1,
unit.out = getOption("photobiology.radiation.unit", default = "energy"),
...)
# S3 method for response_mspct
fscale(x, range = NULL, f = "mean", target = 1,
unit.out = getOption("photobiology.radiation.unit", default = "energy"),
...)
# S3 method for filter_mspct
fscale(x, range = NULL, f = "mean", target = 1,
qty.out = getOption("photobiology.filter.qty", default = "transmittance"),
...)
# S3 method for reflector_mspct
fscale(x, range = NULL, f = "mean", target = 1,
qty.out = NULL, ...)
# S3 method for raw_mspct
fscale(x, range = NULL, f = "mean", target = 1, ...)
# S3 method for cps_mspct
fscale(x, range = NULL, f = "mean", target = 1, ...)
# S3 method for generic_mspct
fscale(x, range = NULL, f = "mean", target = 1,
col.names, ...)
# S3 method for default
fshift(x, ...)
An R object
additonal named arguments passed down to f
.
An R object on which range()
returns a numeric vector of
length 2 with the limits of a range of wavelengths in nm, with min annd max
wavelengths (nm)
character string "mean" or "total" for scaling so taht this summary
value becomes 1 for the returned object, or the name of a function taking
x
as first argument and returning a numeric value.
numeric A constant used as target value for scaling.
character Alowed values "energy", and "photon", or its alias "quantum"
character Allowed values "transmittance", and "absorbance"
character vector containing the names of columns or variables to which to apply the scaling.
a new object of the same class as x
.
a new object of the same class as x
.
default
: Default for generic function
source_spct
:
response_spct
:
filter_spct
:
reflector_spct
:
raw_spct
:
cps_spct
:
generic_spct
:
source_mspct
:
response_mspct
:
filter_mspct
:
reflector_mspct
:
raw_mspct
:
cps_mspct
:
generic_mspct
:
default
: Default for generic function
Other rescaling functions: fshift
,
getNormalized
, is_normalized
,
is_scaled
, normalize
,
setNormalized
, setScaled