RLum.Data.Curve-class: Class '"RLum.Data.Curve"'

Description Usage Arguments Value Methods (by generic) Slots Create objects from this Class Class version How to cite Note Author(s) See Also Examples

Description

Class for representing luminescence curve data.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## S4 method for signature 'RLum.Data.Curve'
show(object)

## S4 method for signature 'RLum.Data.Curve'
set_RLum(class, originator, .uid, .pid,
  recordType = NA_character_, curveType = NA_character_, data = matrix(0,
  ncol = 2), info = list())

## S4 method for signature 'RLum.Data.Curve'
get_RLum(object, info.object = NULL)

## S4 method for signature 'RLum.Data.Curve'
length_RLum(object)

## S4 method for signature 'RLum.Data.Curve'
names_RLum(object)

## S4 method for signature 'RLum.Data.Curve'
bin_RLum.Data(object, bin_size = 2)

## S4 method for signature 'RLum.Data.Curve'
smooth_RLum(object, k = NULL, fill = NA,
  align = "right", method = "mean")

Arguments

object

[show_RLum][get_RLum][length_RLum][names_RLum] an object of class RLum.Data.Curve (required)

class

[set_RLum] character (required): name of the RLum class to create

originator

[set_RLum] character (automatic): contains the name of the calling function (the function that produces this object); can be set manually.

.uid

[set_RLum] character (automatic): sets an unique ID for this object using the internal C++ function .create_UID.

.pid

[set_RLum] character (with default): option to provide a parent id for nesting at will.

recordType

[set_RLum] character (optional): record type (e.g., "OSL")

curveType

[set_RLum] character (optional): curve type (e.g., "predefined" or "measured")

data

[set_RLum] matrix (required): raw curve data. If data itself is a RLum.Data.Curve-object this can be used to re-construct the object (s. Details)

info

[set_RLum] list (optional): info elements

info.object

[get_RLum] character (optional): name of the wanted info element

bin_size

[bin_RLum] integer (with default): set number of channels used for each bin, e.g. bin_size = 2 means that two channels are binned.

k

[smooth_RLum] integer (with default): window for the rolling mean; must be odd for rollmedian. If nothing is set k is set automatically

fill

[smooth_RLum] numeric (with default): a vector defining the left and the right hand data

align

[smooth_RLum] character (with default): specifying whether the index of the result should be left- or right-aligned or centered (default) compared to the rolling window of observations, allowed "right", "center" and left

method

[smooth_RLum] character (with default): defines which method should be applied for the smoothing: "mean" or "median"

Value

set_RLum

Returns an RLum.Data.Curve object.

get_RLum

(1) A matrix with the curve values or
(2) only the info object if info.object was set.

length_RLum

Number of channels in the curve (row number of the matrix)

names_RLum

Names of the info elements (slot info)

bin_RLum.Data

Same object as input, after applying the binning.

smooth_RLum

Same object as input, after smoothing

Methods (by generic)

Slots

recordType

Object of class "character" containing the type of the curve (e.g. "TL" or "OSL")

curveType

Object of class "character" containing curve type, allowed values are measured or predefined

data

Object of class matrix containing curve x and y data. 'data' can also be of type RLum.Data.Curve to change object values without deconstructing the object. For example: set_RLum(class = 'RLum.Data.Curve', data = Your.RLum.Data.Curve, recordType = 'never seen before') would just change the recordType. Missing arguements the value is taken from the input object in 'data' (which is already an RLum.Data.Curve object in this example)

Create objects from this Class

Objects can be created by calls of the form set_RLum(class = "RLum.Data.Curve", ...).

Class version

0.5.0

How to cite

Kreutzer, S. (2017). RLum.Data.Curve-class(): Class 'RLum.Data.Curve'. In: Kreutzer, S., Dietze, M., Burow, C., Fuchs, M.C., Schmidt, C., Fischer, M., Friedrich, J. (2017). Luminescence: Comprehensive Luminescence Dating Data Analysis. R package version 0.7.5. https://CRAN.R-project.org/package=Luminescence

Note

The class should only contain data for a single curve. For additional elements the slot info can be used (e.g. providing additional heating ramp curve). Objects from the class RLum.Data.Curve are produced by other functions (partyl within RLum.Analysis objects), namely: Risoe.BINfileData2RLum.Analysis, read_XSYG2R

Author(s)

Sebastian Kreutzer, IRAMAT-CRP2A, Universite Bordeaux Montaigne (France)

See Also

RLum, RLum.Data, plot_RLum, merge_RLum

Examples

1
2
3
4
showClass("RLum.Data.Curve")

##set empty curve object
set_RLum(class = "RLum.Data.Curve")

Luminescence documentation built on July 4, 2017, 9:43 a.m.