powered by
Generic function setting the number of observations made of event.
event
set_item(d, event, value)
Dist object representing the distribution.
Numeric representing the observed event.
Numeric representing the number of observations.
Dist giving the modified distribution.
# NOT RUN { d <- Dist(5) d <- set_item(d, 1, 5) d <- set_item(d, 3, 2) d <- set_item(d, 5, 8) d # }
Run the code above in your browser using DataLab