1
\name{computeTestKolmogorovUniform}
2
\alias{computeTestKolmogorovUniform}
3
\title{Compute the Kolmogorov-Smirnoff test on a Uniform Distribution sample.}
5
This ROT function, called from a Test C++ object, is given a sample,
6
a point, the necessary distribution parameters and optionnaly a test level. It then
7
returns the result of a K-S test against the null hypothesis that the sample
8
has un underlying Uniform distribution of the given parameters and returns
9
a list containing the result and test p-value.
12
computeTestKolmogorovUniform(numericalSample, a, b,
13
testLevel = 0.95, estimatedParameters)
16
\item{numericalSample}{the sample to be tested (numeric vector)}
17
\item{a}{The Uniform distribution aParameter.}
18
\item{b}{The Uniform distribution bParameter.}
19
\item{testLevel}{the test level. (scalar in [0:1])}
20
\item{estimatedParameters}{the test level. (scalar in [0:1])}
23
A list is returned, containing :
24
\item{testResult}{The result. 1 means H0 is not rejected. (scalar)}
25
\item{threshold}{The threshold applied to the p-value when deciding the outcome of the test.}
26
\item{pValue}{The test p-value. (scalar)}
28
\author{Pierre-Matthieu Pair, Softia for EDF.}
29
\examples{# Standard Uniform distribution example.
31
print(computeTestKolmogorovUniform(runif(1000) * 4 + 2, 2, 6))
32
print(computeTestKolmogorovUniform(runif(1000) * 3 + 2, 2, 6))
34
\keyword{distribution}