~ubuntu-branches/ubuntu/maverick/openturns/maverick

« back to all changes in this revision

Viewing changes to debian/rotRPackage/man/computeTestKolmogorovUniform.Rd

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2008-10-03 10:55:20 UTC
  • Revision ID: james.westby@ubuntu.com-20081003105520-i4sqk110f19vp7hd
Tags: 0.12.1-6
* debian/rules: Fix FTBS on hppa, sparc, arm, and armel because of
  __sync_fetch_and_add_4 not being available, the remedy is to use
  -DBOOST_SP_USE_PTHREADS
* debian/rules: add --disable-debug option to configure and set the
  compiler flags to -g -O2 (no -Wall)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
\name{computeTestKolmogorovUniform}
 
2
\alias{computeTestKolmogorovUniform}
 
3
\title{Compute the Kolmogorov-Smirnoff test on a Uniform Distribution sample.}
 
4
\description{
 
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.
 
10
}
 
11
\usage{
 
12
computeTestKolmogorovUniform(numericalSample, a, b,
 
13
testLevel = 0.95, estimatedParameters)
 
14
}
 
15
\arguments{
 
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])}
 
21
}
 
22
\value{
 
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)}
 
27
}
 
28
\author{Pierre-Matthieu Pair, Softia for EDF.}
 
29
\examples{# Standard Uniform distribution example. 
 
30
 
 
31
print(computeTestKolmogorovUniform(runif(1000) * 4 + 2, 2, 6))
 
32
print(computeTestKolmogorovUniform(runif(1000) * 3 + 2, 2, 6))
 
33
}
 
34
\keyword{distribution}