Raw File
Tip revision: 23ea3229abe72a5f23dcf3a4cfcd3478d744b536 authored by Dominique Makowski on 20 June 2019, 11:50:03 UTC
version 0.2.2
Tip revision: 23ea322
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estimate_density.R
\title{Probability of a Given Point}
density_at(posterior, x, precision = 2^10, ...)

probability_at(posterior, x, precision = 2^10, ...)
\item{posterior}{Vector representing a posterior distribution.}

\item{x}{The value of which to get the approximate probability.}

\item{precision}{Number of points of density data. See the \code{n} parameter in \link[=density]{density}.}

\item{...}{Currently not used.}
Compute the density of a given point of a distribution.
posterior <- distribution_normal(n = 10)
density_at(posterior, 0)
density_at(posterior, c(0, 1))
back to top