Generic function giving the number of observations made of event
.
get_item(d, event)
Dist object representing the distribution.
Numeric representing the observed event.
Numeric giving the number of observation of event
.
# NOT RUN {
d <- Dist(c(5, 0, 3, 7, 18, 0))
get_item(d, 1) # 5
get_item(d, 4) # 7
# }
Run the code above in your browser using DataLab