# dmixtruncnorm

##### Probability density function of a mixture of truncated normals

Computes the probability density function of a mixture of truncated normals.

- Keywords
- Mixture of truncated normals

##### Usage

`dmixtruncnorm(x, pis, means, sds, range)`

##### Arguments

- x
A scalar or vector of real values.

- pis
A vector collecting the mixture weights. See details.

- means
A vector collecting the means of the mixture components.

- sds
A vector collecting the standard deviations of the mixture components.

- range
Interval corresponding to the support of each of truncated normal contributing to the mixture. See details.

##### Details

The argument `pis`

is a vector with its length equal the number of components in the mixture. The vector `pis`

must sum up to one, e.g. `c(0.7, 0.2, 0.1)`

.
The argument `range`

is an interval corresponding to the support of each truncated normal contributing to the mixture. In other words, all the truncated normals contributing to the mixture are assumed to have the same range.

##### Value

Value of the probability density function of the mixture of normals evaluated at `x`

.

##### See Also

##### Examples

```
# NOT RUN {
xx<-seq(0,30,length=10)
dmixtruncnorm(xx,pis=c(0.3,0.6,0.1),means=c(3,6,25),sds=c(3,4,10),range=c(0,30))
# }
```

*Documentation reproduced from package LPsmooth, version 0.1.0, License: GPL-3*