Learn R Programming

LumReader (version 0.1.0)

create_Stimulation: Function to create a Stimulation.

Description

This function create a new Stimulation.

Usage

create_Stimulation(name, description, type, emission)

Arguments

name
character: Name of the Stimulation.
description
character: Description of the Stimulation.
type
character: Type of the Stimulation ('TL' or 'OSL').
emission
numeric: emission of the Stimulation [u.a].

Value

This function return a new Stimulation.

Examples

Run this code
# Data
name <- "example"
description <- "non realistic stimulation"

wavelength <- seq(200,1000,10)

values <- dnorm(x = wavelength,mean = 500,sd = 25)
values <- values/max(values)

emission <- matrix(data=c(wavelength,
                          values),
                   nrow = 81,
                   ncol = 2,
                   byrow = FALSE)

stimulation <- create_Stimulation(name = name,
                                  description = description,
                                  type = 'OSL',
                                  emission = emission)

plot_Stimulation(stimulation)

Run the code above in your browser using DataLab