gfct {MixThres} | R Documentation |
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.
gfct(x, moy, sdev, l, u)
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. |
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))
The density.
J. Aubert