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

« back to all changes in this revision

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