Raw File
Tip revision: fe07bfa906d7e155439160caee538a3449cd3877 authored by Dominique Makowski on 08 April 2019, 08:42:41 UTC
version 0.1.0
Tip revision: fe07bfa
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_density_at.R
\title{Probability of a Given Point}
density_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 for density estimation. See the \code{n} parameter in \link[=density]{density}.}
Compute the density of a given point of a distribution.
posterior <- rnorm_perfect(n = 10)
density_at(posterior, 0)
density_at(posterior, c(0, 1))
back to top