create_Stimulation: Function to create a Stimulation.

Description Usage Arguments Value Author(s) Examples

View source: R/create_Stimulation.R

Description

This function create a new Stimulation.

Usage

1
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.

Author(s)

David Strebler, University of Cologne (Germany).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# 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)

LumReader documentation built on May 29, 2017, 9:33 p.m.