RandVariable | R Documentation |
Generates an object of class "RandVariable"
.
RandVariable(Map = list(function(x){}), Domain = NULL, Range = NULL)
Map |
list of functions forming the map. |
Domain |
domain of |
Range |
range of |
Object of class "RandVariable"
Matthias Kohl Matthias.Kohl@stamats.de
RandVariable-class
(R1 <- 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)
## The function is currently defined as
function(Map = list(function(x){ }), Domain = NULL, Range = NULL) {
return(new("RandVariable", Map = Map, Domain = Domain, Range = Range))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.