lnNpr: Calculate log of Gaussian distribution function accurately

View source: R/RcppExports.R

lnNprR Documentation

Calculate log of Gaussian distribution function accurately

Description

This function returns the probability of a standard Gaussian variate between the interval a and b, avoiding numerical overflow. The function is vectorized and is meant to be used only internally by the package TruncatedNormal.

Usage

lnNpr(a, b, check = TRUE)

Arguments

a

vector of lower bound

b

vector of upper bound

check

logical; should checks be performed?

Value

a vector of log probability.


lbelzile/TruncatedNormal documentation built on March 4, 2024, 5:50 p.m.