dtuvn: Density function of truncated univariate normal distribution

Description Usage Arguments Value Examples

View source: R/dtuvn.R

Description

dtuvn calculates the probability density function (pdf) of truncated univariate normal distribution.

Usage

1
dtuvn(x, mean, sd, lower, upper)

Arguments

x

value at which density is desired.

mean

mean of the underlying univariate normal distribution.

sd

standard deviation of the underlying univariate normal distribution.

lower

lower bound for truncation.

upper

upper bound for truncation.

Value

dtuvn returns the density (with same dimension and type as x) of truncated univariate normal distribution.

Examples

1
dtuvn(x= -3:3, mean=0, sd=1 ,lower= -2, upper=2)

tmvmixnorm documentation built on Sept. 19, 2020, 1:07 a.m.

Related to dtuvn in tmvmixnorm...