hyperSpec-class {hyperSpec}R Documentation

Class "hyperSpec"

Description

This class handles hyperspectral data sets, i.e. spatially or time-resolved spectra, or spectra with any other kind of information associated with the spectra.

The spectra can be data as obtained in XRF, UV/VIS, Fluorescence, AES, NIR, IR, Raman, NMR, MS, etc.

More generally, any data that is recorded over a discretized variable, e.g. absorbance = f (wavelength), stored as a vector of absorbance values for discrete wavelengths is suitable.

Objects from the Class

Objects can be created by calls of the form new("hyperSpec", spc, data, wavelength, label, log), for details see initialize.

Slots

wavelength:
Numeric vector giving the wavelengths (or wavenumbers, frequencies, m/z, ...) for each data point of the spectrum.

wavelength wavelength axis of the spectra.

data:
data.frame with the spectra and further data for each spectrum (e.g. x/y/z coordinates, times, sample numbers, concentrations, etc.).

The spectra are stored in data$spc, preferrably as a matrix.

label:
List with the labels (character vectors or expressions) that should be used to describe the columns of data.

The label for wavelength is in label$.wavelength.

log:
A data.frame with the columns short.description, long.description, date, and name tracking what is done with the object.

Methods

aggregate
signature(x = "hyperSpec"): ...
all.equal
signature(target = "hyperSpec", current = "hyperSpec"): ...
apply
signature(X = "hyperSpec"): ...
Arith
signature(e1 = "hyperSpec", e2 = "hyperSpec"): ...
Arith
signature(e1 = "hyperSpec", e2 = "numeric"): ...
Arith
signature(e1 = "hyperSpec", e2 = "matrix"): ...
Arith
signature(e1 = "hyperSpec", e2 = "missing"): ...
Arith
signature(e1 = "numeric", e2 = "hyperSpec"): ...
Arith
signature(e1 = "matrix", e2 = "hyperSpec"): ...
as.character
signature(x = "hyperSpec"): ...
as.data.frame
signature(x = "hyperSpec", row.names = "missing", optional = "missing"): ...
as.matrix
signature(x = "hyperSpec"): ...
[<-
signature(x = "hyperSpec"): ...
[
signature(x = "hyperSpec"): ...
[[<-
signature(x = "hyperSpec"): ...
[[
signature(x = "hyperSpec"): ...
$<-
signature(x = "hyperSpec"): ...
$
signature(x = "hyperSpec"): ...
%*%
signature(x = "hyperSpec", y = "hyperSpec"): ...
%*%
signature(x = "hyperSpec", y = "matrix"): ...
%*%
signature(x = "matrix", y = "hyperSpec"): ...
cbind2
signature(x = "hyperSpec", y = "hyperSpec"): ...
cbind2
signature(x = "hyperSpec", y = "missing"): ...
colnames
signature(x = "hyperSpec"): ...
Compare
signature(e1 = "hyperSpec", e2 = "hyperSpec"): ...
Compare
signature(e1 = "hyperSpec", e2 = "numeric"): ...
Compare
signature(e1 = "hyperSpec", e2 = "matrix"): ...
Compare
signature(e1 = "numeric", e2 = "hyperSpec"): ...
Compare
signature(e1 = "matrix", e2 = "hyperSpec"): ...
dim
signature(x = "hyperSpec"): ...
dimnames
signature(x = "hyperSpec"): ...
initialize
signature(.Object = "hyperSpec"): ...
labels
signature(object = "hyperSpec"): ...
log
signature(x = "hyperSpec"): ...
Math2
signature(x = "hyperSpec"): ...
Math
signature(x = "hyperSpec"): ...
ncol
signature(x = "hyperSpec"): ...
nrow
signature(x = "hyperSpec"): ...
plot
signature(x = "hyperSpec", y = "missing"): ...
plot
signature(x = "hyperSpec", y = "character"): ...
print
signature(x = "hyperSpec"): ...
rbind2
signature(x = "hyperSpec", y = "hyperSpec"): ...
rbind2
signature(x = "hyperSpec", y = "missing"): ...
rownames
signature(x = "hyperSpec"): ...
show
signature(object = "hyperSpec"): ...
split
signature(x = "hyperSpec"): ...
summary
signature(object = "hyperSpec"): ...
Summary
signature(x = "hyperSpec"): ...
sweep
signature(x = "hyperSpec"): ...

Author(s)

C. Beleites

See Also

See the vignette "introduction" for an introduction to hyperSpec from a spectroscopic point of view.

Examples

showClass("hyperSpec")
vignette ("introduction")

[Package hyperSpec version 0.95 Index]