math: Math Functions for hyperSpec Objects

Description Usage Arguments Details Value Author(s) See Also Examples

Description

The functions abs, sign,

Usage

1
2
3
4
5
6
7
8
## S4 method for signature 'hyperSpec'
Math2(x, digits)

## S4 method for signature 'hyperSpec'
log(x, base = exp(1), ...)

## S4 method for signature 'hyperSpec'
Math(x)

Arguments

x

the hyperSpec object

digits

integer stating the rounding precision

base

base of logarithm

...

ignored

Details

sqrt,

floor, ceiling, trunc, round, signif,

exp, log, expm1, log1p,

cos, sin, tan, acos, asin, atan, cosh, sinh, tanh, acosh, asinh, atanh,

lgamma, gamma, digamma, trigamma,

cumsum, cumprod, cummax, cummin

for hyperSpec objects.

Value

a hyperSpec object

Author(s)

C. Beleites

See Also

S4groupGeneric for group generic methods.

Math for the base math functions.

Arith for arithmetic operators, Comparison for comparison operators, and Summary for group generic functions working on hyperSpec objects.

Examples

1
log (flu)

Example output

Loading required package: lattice
Loading required package: grid
Loading required package: ggplot2
Package hyperSpec, version 0.99-20180627

To get started, try
   vignette ("hyperspec")
   package?hyperSpec 
   vignette (package = "hyperSpec")

If you use this package please cite it appropriately.
   citation("hyperSpec")
will give you the correct reference.

The project homepage is http://hyperspec.r-forge.r-project.org


hyperSpec object
   6 spectra
   3 data columns
   181 data points / spectrum
wavelength: lambda/nm [numeric] 405.0 405.5 ... 495 
data:  (6 rows x 3 columns)
   1. spc: I[fl]/"a.u." [matrix181] 3.301377 4.201723 ... 5.685787 
   2. filename: filename [character] rawdata/flu1.txt rawdata/flu2.txt ... rawdata/flu6.txt 
   3. c: c / (mg / l) [numeric] 0.05 0.10 ... 0.3 

hyperSpec documentation built on May 2, 2019, 5:45 p.m.