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

« back to all changes in this revision

Viewing changes to debian/rotRPackage/man/computeTestAndersonDarlingNormal.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{computeTestAndersonDarlingNormal}
 
2
\alias{computeTestAndersonDarlingNormal}
 
3
\title{Compute the Anderson-Darling test for Normal Distribution.}
 
4
\description{
 
5
This ROT function, called from a Test C++ object, is given a sample,
 
6
and optionnaly a test level. It then returns the result of a A-D test
 
7
against the null hypothesis that the sample has un underlying Normal 
 
8
distribution and returns a list containing the result and test p-value.
 
9
}
 
10
\usage{
 
11
computeTestAndersonDarlingNormal(numericalSample, testLevel = 0.95)
 
12
}
 
13
\arguments{
 
14
  \item{numericalSample}{the sample to be tested (numeric vector)}
 
15
  \item{testLevel}{the test level. (scalar in [0:1])}
 
16
}
 
17
\value{
 
18
 A list is returned, containing :
 
19
  \item{testResult}{The result. 1 means H0 is not rejected. (scalar)}
 
20
  \item{threshold}{The threshold applied to the p-value when deciding the outcome of the test.}
 
21
  \item{pValue}{The test p-value. (scalar)}
 
22
}
 
23
\author{Pierre-Matthieu Pair, Softia for EDF.}
 
24
\examples{
 
25
# Standard Normal distribution example. 
 
26
 
 
27
print(computeTestAndersonDarlingNormal(rnorm(1000, 3, 1.5)))
 
28
print(computeTestAndersonDarlingNormal(rexp(1000, 2.5)))
 
29
}
 
30
\keyword{distribution}