1
\name{estimateTruncatedNormalParameters}
2
\alias{estimateTruncatedNormalParameters}
3
\title{Estimates the underlying truncated normal distribution parameters from a sample.}
5
This ROT function, called from a TruncatedNormalFactory C++ object, is given a sample
6
and returns the estimated parameters of the underlying TruncatedNormal distribution,
7
as well as the corresponding confidence intervals of required level.
10
estimateTruncatedNormalParameters(numericalSample, testLevel = 0.975)
13
\item{numericalSample}{A vector containing the sample.}
14
\item{testLevel}{the test level. (scalar in [0:1])}
17
A list is returned, containing :
18
\item{distribution}{The distribution name.}
19
\item{mu}{The estimated mu parameter.}
20
\item{sigma}{The sigma parameter.}
21
\item{a}{The aParameter parameter.}
22
\item{b}{The bParameter parameter.}
23
\item{confidenceIntervalmu}{CI for the mu parameter (vector).}
24
\item{confidenceIntervalsigma}{CI for the sigma parameter (vector).}
25
\item{logLikelihood}{The model loglikelihood.}
27
\author{Pierre-Matthieu Pair, R�gis Lebrun.}
29
# Standard TruncatedNormal distribution example.
30
numericalSample <- rnorm(1000, 3, 1.5)
31
numericalSample <- numericalSample[numericalSample > 0.0 &&
32
numericalSample < 5.0]
33
print(estimateTruncatedNormalParameters(numericalSample))
35
\keyword{distribution}