| RealRandVariable {RandVar} | R Documentation |
Generates an object of class "RealRandVariable".
RealRandVariable(Map = list(function(x) {1}), Domain = NULL, Range)
Map |
list of functions forming the map. |
Domain |
domain of Map: object of
class "OptionalrSpace". |
Range |
range of Map: object of
class "Reals". |
Object of class "RealRandVariable"
Matthias Kohl Matthias.Kohl@stamats.de
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()))
}