gfct {MixThres}R Documentation

Density function for a truncated gaussian distribution

Description

Density function for a truncated gaussian distribution with mean equal to moy and standard deviation equal to sdev and truncature parameters equal to l and u.

Usage

gfct(x, moy, sdev, l, u)

Arguments

x vector of quantiles.
moy vector of means.
sdev vector of standard deviations.
l the left (lower) truncature parameter.
u the right (upper) truncature parameter.

Details

The gfct function is defined as : gfct <- function(x,moy,sdev,l,u) (dnorm(x,mean=moy,sd=sdev)*(x<=u)*(x>=l))/(pnorm(u,mean=moy,sd=sdev)-pnorm(l,mean=moy,sd=sdev))

Value

The density.

Author(s)

J. Aubert

See Also

loggfct


[Package MixThres version 1.0 Index]