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

« back to all changes in this revision

Viewing changes to man/dcd/cdfgam.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
cdfgam            Scilab Group            Scilab Function            cdfgam
 
2
NAME
 
3
   cdfgam - cumulative distribution function gamma distribution 
 
4
  
 
5
CALLING SEQUENCE
 
6
 [P,Q]=cdfgam("PQ",X,Shape,Scale)
 
7
 [X]=cdfgam("X",Shape,Scale,P,Q)
 
8
 [Shape]=cdfgam("Shape",Scale,P,Q,X)
 
9
 [Scale]=cdfgam("Scale",P,Q,X,Shape)
 
10
PARAMETERS
 
11
 P,Q,X,Shape,Scale
 
12
             : five real vectors of the same size.
 
13
            
 
14
 P,Q (Q=1-P)
 
15
               The integral from 0 to X of the gamma density. Input range: [0,1].
 
16
            
 
17
 X          :  The upper limit of integration of the gamma density. Input
 
18
            range: [0, +infinity). Search range: [0,1E300]
 
19
            
 
20
 Shape      :  The shape parameter of the gamma density. Input range: (0,
 
21
            +infinity). Search range: [1E-300,1E300]
 
22
            
 
23
 Scale      :  The scale parameter of the gamma density. Input range: (0,
 
24
            +infinity). Search range: (1E-300,1E300]
 
25
            
 
26
DESCRIPTION
 
27
   Calculates any one parameter of the gamma distribution given values for
 
28
  the others.
 
29
  
 
30
   Cumulative distribution function (P) is calculated directly by the code
 
31
  associated with:
 
32
  
 
33
   DiDinato, A. R. and Morris, A. H. Computation of the  incomplete gamma
 
34
  function  ratios  and their  inverse.   ACM  Trans.  Math. Softw. 12
 
35
  (1986), 377-393.
 
36
  
 
37
   Computation of other parameters involve a seach for a value that produces
 
38
   the desired  value  of P.   The search relies  on  the monotinicity of P
 
39
  with the other parameter.
 
40
  
 
41
   The gamma density is proportional to T**(SHAPE - 1) * EXP(- SCALE * T)
 
42
  
 
43
   From DCDFLIB: Library of Fortran Routines for Cumulative Distribution
 
44
  Functions, Inverses, and Other Parameters (February, 1994) Barry W.
 
45
  Brown, James Lovato and Kathy Russell. The University of Texas.
 
46