Random variable
Class of random variables; i.e., measurable maps from
Domain
to Range
. The elements contained in
the list Map
are functions in one(!) argument named “x”.
Objects can be created by calls of the form new("RandVariable", ...)
.
More frequently they are created via the generating function
RandVariable
.
Map
Object of class "list"
: list of functions.
Domain
Object of class "OptionalrSpace"
:
domain of the random variable.
Range
Object of class "OptionalrSpace"
:
range of the random variable.
signature(object = "RandVariable")
:
accessor function for the slot Map
.
signature(object = "RandVariable")
:
accessor function for the slot Domain
.
signature(object = "RandVariable")
:
accessor function for the slot Range
.
signature(object = "RandVariable")
:
replacement function for the slot Map
.
signature(object = "RandVariable")
:
replacement function for the slot Domain
.
signature(object = "RandVariable")
:
replacement function for the slot Range
.
signature(e1 = "RandVariable", e2 = "RandVariable")
:
test if the domains of two random variables are compatible.
signature(object = "RandVariable")
:
length of the list of functions in slot Map
.
signature(object = "RandVariable")
Matthias Kohl Matthias.Kohl@stamats.de
(R1 <- new("RandVariable")) Map(R1) Domain(R1) Range(R1) Map(R1) <- list(function(x){ceiling(x)}, function(x){floor(x)}) Domain(R1) <- Reals() Range(R1) <- Naturals() R1 Map(R1) length(R1) R2 <- R1 Domain(R2) <- Naturals() compatibleDomains(R1, R2) Domain(R2) <- NULL compatibleDomains(R1, R2) Domain(R2) <- EuclideanSpace(dimension = 1) compatibleDomains(R1, R2) Domain(R2) <- EuclideanSpace(dimension = 2) compatibleDomains(R1, R2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.