powered by
Generic function to make a single observation of event, and return the a modified distribution with the updated number of observations of said event.
event
tick(d, event)
Dist object representing the distribution.
Numeric representing the observed event.
Dist giving the updated distribution.
# NOT RUN { d <- Dist(5) d <- tick(d, 1) d <- tick(d, 1) d <- tick(d, 3) d # [2, 0, 1, 0] # }
Run the code above in your browser using DataLab