Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

RealRandVariable

Generating function for RealRandVariable-class


Description

Generates an object of class "RealRandVariable".

Usage

RealRandVariable(Map = list(function(x) {1}), Domain = NULL, Range)

Arguments

Map

list of functions forming the map.

Domain

domain of Map: object of class "OptionalrSpace".

Range

range of Map: object of class "Reals".

Value

Object of class "RealRandVariable"

Author(s)

See Also

Examples

RealRandVariable(Map = list(function(x){x}), Domain = Reals())

## The function is currently defined as
function(Map = list(function(x){1}), Domain = NULL, Range) {
    if(missing(Range)) Range <- Reals()
    if(!is(Range, "Reals"))
        stop("'Range' has to be of class 'Reals'")

    return(new("RealRandVariable", Map = Map, 
               Domain = Domain, Range = Reals()))
}

RandVar

Implementation of Random Variables

v1.2.1
LGPL-3
Authors
Matthias Kohl [cre, cph, aut], Peter Ruckdeschel [aut, cph]
Initial release
2020-01-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.