class.emission: Emission Function class

Description Usage Format Details Slots Built-in emission functions Make an emission object from an Emission function References See Also Examples

Description

Emission functions are implemented specially for specially for Catania's Operant Reserve (Catania, 2005). The Emission function takes some input and emits behaviour or the time at which behaviour occurs. In the case of Catania's Operant Reserve, the input is the reserve level.

Usage

1
2
3
4
5
6
7
make.emission(emission_fx, name)

G_E_emission_fx(reserve_value, time, min_IRT)

emission.show

remove.emission.show()

Format

The show method prints the function that is contained in the emission object as well as the type of object (i.e. "elemental") and the class (i.e. "emission" ).

Details

In the CAB package, objects from classes like emission are called 'elemental' objects That is, they comprise a particular element of the simulation without any specified parameter values. 'Control' objects are elemental objects with an associated list of parameter values. Refer to class.DOR for information for putting a emission in a model.

The show method for the emission class can be removed with the function remove.emission.show() and reinstated with emission.show.

Slots

emission

This will contain an Emission function. See examples.

name

The name of the emission object.

type

This will be elemental because the emission is an elemental object.

Built-in emission functions

A list of the built-in emission functions. The function definitions can be seen by calling the name of the function without brackets. Each function returns the time at which the next response will occur.

G_E_emission_fx( reserve_value, time, min_IRT )

An Emission function where the time at which the next response will occur is represented as a Geometrically distributed random variable with the probability of emitting a response being equal to the momentary reserve level, and then transformed from a Geometric distribution to an Exponential dsitribution so that responses are emitted in continous time. An additional argument is added for the minimum inter-response time. The distribution is given as:

t ~ Exponential( rate = -log(1-reserve) ) + min_IRT

where t is the emitted inter-response time. See rexp.

Make an emission object from an Emission function

Use the make.emission function to make a emission object.

Usage

make.emission( emission_fx, name )

Arguments

emission_fx

A function that represents the Emission of interest

name

A character vector specifying the name of your emission object

Value

Returns a emission object.

References

Catania, A. C. (2005). The operant reserve: A computer simulation in (accelerated) real time. Behavioural Processes, 69(2), 257-278. https://doi.org/10.1016/j.beproc.2005.02.009

See Also

make.control for making DOR_control objects.

set.custom_elemental for setting custom elemental classes.

make.custom_elemental for making custom elemental objects.

e_show for the function that is called by the show method.

accessor_helpers for the helper functions used in the built-in DOR functions.

class.elemental for the parent elemental class.

Examples

1
2
3
4
# Look at the definition of the "G_E_emission_fx" Emission function
G_E_emission_fx
# Make an emission object out of the "G_E_emission_fx" Emission function
G_E_emission = make.emission( emission_fx = G_E_emission_fx, name = "G_E_emission" )

Don-Li/CAB_original documentation built on May 6, 2019, 2:53 p.m.