powered by
Similar to @seealso estimatePdf, this function returns the probability for a discrete value, given some observations.
estimatePdf
getProbForDiscrete(data, value)
vector of observations that have the same type as the given value.
a single observation of the same type as the data vector.
the probability of value given data.
# NOT RUN { mmb::getProbForDiscrete(data = c(), value = iris[1,]$Species) mmb::getProbForDiscrete(data = iris$Species, value = iris[1,]$Species) # }
Run the code above in your browser using DataLab