| PeakPosition-class {gamma} | R Documentation |
An S4 Class to Represent a Set of Peaks
Description
An S4 Class to Represent a Set of Peaks
Slots
hashA
characterstring giving the 32-byte MD5 hash of the imported spectrum file.noise_methodA
characterstring specifying the method used for peak detection.noise_thresholdA length one
numericvector giving the noise threshold.windowA length one
numericvector giving the half-window size.channelA
integervector giving the channel number. Numeric values are coerced to integer as byas.integer()(and hence truncated towards zero).energy_observedA
numericvector giving the observed gamma ray energy (in keV).energy_expectedA
numericvector giving the expected gamma ray energy (in keV).
Access
In the code snippets below, x is a PeakPosition object.
get_hash(x)Get the MD5 hash of the raw data file.
get_channels(x)Get the channels of
x.get_energy(x),set_energy(x) <- valueRetrieves or sets the energy scale of
xaccording tovalue.
Coerce
In the code snippets below, x is a PeakPosition object.
as.matrix(x)Coerces
xto amatrix.as.data.frame(x)Coerces
xto adata.frame.
Subset
In the code snippets below, x is a PeakPosition object.
x[[i]]Extracts information from a slot selected by subscript
i.iis acharactervector of length one and will be matched to the name of the slots.
Note
This class retains copy construction.
Author(s)
N. Frerebeau
See Also
Other class:
Baseline-class,
CalibrationCurve-class,
GammaSpectra-class,
GammaSpectrum-class,
coerce()