~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/dcd/cdfnbn.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
cdfnbn            Scilab Group            Scilab Function            cdfnbn
2
 
NAME
3
 
   cdfnbn - cumulative distribution function  negative binomial distribution
4
 
  
5
 
  
6
 
CALLING SEQUENCE
7
 
 [P,Q]=cdfnbn("PQ",S,Xn,Pr,Ompr)
8
 
 [S]=cdfnbn("S",Xn,Pr,Ompr,P,Q)
9
 
 [Xn]=cdfnbn("Xn",Pr,Ompr,P,Q,S)
10
 
 [Pr,Ompr]=cdfnbn("PrOmpr",P,Q,S,Xn)
11
 
PARAMETERS
12
 
 P,Q,S,Xn,Pr,Ompr
13
 
             : six real vectors of the same size.
14
 
            
15
 
 P,Q (Q=1-P)
16
 
             : The cumulation from 0 to S of the  negative binomial distribution.
17
 
            Input range: [0,1].
18
 
            
19
 
 S          : The upper limit of cumulation of the binomial distribution.
20
 
            There are F or fewer failures before the XNth success. Input
21
 
            range: [0, +infinity). Search range: [0, 1E300]
22
 
            
23
 
 Xn         :   The number of successes. Input range: [0, +infinity).
24
 
            Search range: [0, 1E300]
25
 
            
26
 
 Pr         :   The probability of success in each binomial trial. Input
27
 
            range: [0,1]. Search range: [0,1].
28
 
            
29
 
 Ompr       :   1-PR Input range: [0,1]. Search range: [0,1] PR + OMPR =
30
 
            1.0 
31
 
            
32
 
DESCRIPTION
33
 
   Calculates any one parameter of the negative binomial distribution given
34
 
  values for the others.
35
 
  
36
 
   The  cumulative  negative   binomial  distribution  returns  the
37
 
  probability that there  will be  F or fewer failures before  the XNth
38
 
  success in binomial trials each of which has probability of success PR.
39
 
  
40
 
   The individual term of the negative binomial is the probability of S
41
 
  failures before XN successes and is Choose( S, XN+S-1 ) * PR^(XN) *
42
 
  (1-PR)^S
43
 
  
44
 
   Formula   26.5.26   of   Abramowitz  and  Stegun,  Handbook   of
45
 
  Mathematical Functions (1966) is used  to  reduce calculation of the
46
 
  cumulative distribution  function to that of  an  incomplete beta.
47
 
  
48
 
   Computation of other parameters involve a seach for a value that produces
49
 
   the desired  value  of P.   The search relies  on  the monotinicity of P
50
 
  with the other parameter.
51
 
  
52
 
   From DCDFLIB: Library of Fortran Routines for Cumulative Distribution
53
 
  Functions, Inverses, and Other Parameters (February, 1994) Barry W.
54
 
  Brown, James Lovato and Kathy Russell. The University of Texas.
55