log: Logarithms and Exponentials

logR Documentation

Logarithms and Exponentials

Description

Logarithms and Exponentials for Spectra. The functions are applied to the spectral data, not the wavelengths. The quantity in the spectrum to which the function is applied depends on the class of x and the current value of output options

Usage

## S3 method for class 'generic_spct'
log(x, base = exp(1))

## S3 method for class 'generic_spct'
log2(x)

## S3 method for class 'generic_spct'
log10(x)

## S3 method for class 'generic_spct'
exp(x)

Arguments

x

an object of class "generic_spct"

base

a positive number: the base with respect to which logarithms are computed. Defaults to e=exp(1).

Value

An object of the same class as x.

Note

In most cases a logarithm of an spectral quantity will yield off-range values. For this reason unless x is an object of base class generic_spct, checks will not be passed, resulting in warnings or errors.

See Also

Other math operators and functions: MathFun, ^.generic_spct(), convolve_each(), div-.generic_spct, minus-.generic_spct, mod-.generic_spct, plus-.generic_spct, round(), sign(), slash-.generic_spct, times-.generic_spct


photobiology documentation built on Oct. 21, 2023, 1:06 a.m.