Skip to contents

Function to read the "scaled" attribute of an existing generic_spct object.

Usage

getScaled(x, .force.list = FALSE)

getScaling(x)

Arguments

x

a generic_spct object

.force.list

logical If TRUE always silently return a list, with FALSE encoded field multiplier = 1.

Value

logical

Note

if x is not a filter_spct object, NA is returned

See also

Other rescaling functions: fscale(), fshift(), getNormalized(), is_normalized(), is_scaled(), normalize(), setNormalized(), setScaled()

Examples


scaled.spct <- fscale(sun.spct)
getScaled(scaled.spct)
#> $multiplier
#> [1] 1.932188
#> 
#> $f
#> [1] "mean"
#> 
#> $range
#> [1] 280 800
#> 
#> $target
#> [1] 1
#> 
#> $cols
#> [1] "s.e.irrad"
#>