Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50530 - in sandbox/math_toolkit/libs/math/doc/sf_and_dist: distributions equations graphs
From: john_at_[hidden]
Date: 2009-01-10 05:27:01


Author: johnmaddock
Date: 2009-01-10 05:26:59 EST (Sat, 10 Jan 2009)
New Revision: 50530
URL: http://svn.boost.org/trac/boost/changeset/50530

Log:
Added graphs and equations.
Added:
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric1.mml (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric1.png (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric1.svg (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric2.mml (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric2.png (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric2.svg (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric3.mml (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric3.png (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric3.svg (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric4.mml (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric4.png (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric4.svg (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric5.mml (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric5.png (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric5.svg (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric6.mml (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric6.png (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric6.svg (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/hypergeometric_pdf_1.png (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/hypergeometric_pdf_1.svg (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/hypergeometric_pdf_2.png (contents, props changed)
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/hypergeometric_pdf_2.svg (contents, props changed)
Text files modified:
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/distributions/hypergeometric.qbk | 13 ++++++++++---
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/generate.sh | 5 +++--
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/dist_graphs.cpp | 21 +++++++++++++++++++++
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/generate.sh | 5 +++--
   4 files changed, 37 insertions(+), 7 deletions(-)

Modified: sandbox/math_toolkit/libs/math/doc/sf_and_dist/distributions/hypergeometric.qbk
==============================================================================
--- sandbox/math_toolkit/libs/math/doc/sf_and_dist/distributions/hypergeometric.qbk (original)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/distributions/hypergeometric.qbk 2009-01-10 05:26:59 EST (Sat, 10 Jan 2009)
@@ -42,10 +42,17 @@
 the hypergeometric distribution is strictly discrete: it can not be
 extended to real valued arguments of it's parameters or random variable.]
 
-The following graph shows how the distribution changes as the
-parameters change:
+The following graph shows how the distribution changes as the proportion
+of "defective" items changes, while keeping the population and sample sizes
+constant:
 
-[graph hypergeometic_pdf]
+[graph hypergeometric_pdf_1]
+
+Note that since the distribution is symmetrical in parameters /n/ and /r/, if we
+change the sample size and keep the population and proportion "defective" the same
+then we obtain basically the same graphs:
+
+[graph hypergeometric_pdf_2]
 
 [h4 Member Functions]
 

Modified: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/generate.sh
==============================================================================
--- sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/generate.sh (original)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/generate.sh 2009-01-10 05:26:59 EST (Sat, 10 Jan 2009)
@@ -7,8 +7,8 @@
 #
 # Paths to tools come first, change these to match your system:
 #
-math2svg='C:\download\open\SVGMath-0.3.1\math2svg.py'
-python=/cygdrive/c/Python25/python.exe
+math2svg='d:\download\open\SVGMath-0.3.1\math2svg.py'
+python=/cygdrive/c/Python26/python.exe
 inkscape=/cygdrive/c/progra~1/Inkscape/inkscape
 # Image DPI:
 dpi=120
@@ -29,3 +29,4 @@
 
 
 
+

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric1.mml
==============================================================================
--- (empty file)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric1.mml 2009-01-10 05:26:59 EST (Sat, 10 Jan 2009)
@@ -0,0 +1,117 @@
+<?xml version='1.0'?>
+<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN'
+ 'http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd'
+ [<!ENTITY mathml 'http://www.w3.org/1998/Math/MathML'>]>
+<html xmlns='http://www.w3.org/1999/xhtml'>
+<head><title>hypergeometric1</title>
+<!-- MathML created with MathCast Equation Editor version 0.89 -->
+</head>
+<body>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mrow>
+ <mi>f</mi>
+ <mfenced>
+ <mrow>
+ <mi>k</mi>
+ <mo>;</mo>
+ <mi>r</mi>
+ <mo>,</mo>
+ <mi>n</mi>
+ <mo>,</mo>
+ <mi>N</mi>
+ </mrow>
+ </mfenced>
+ <mspace width="1em"/>
+ <mo>=</mo>
+ <mspace width="1em"/>
+ <mfrac>
+ <mrow>
+ <mi>n</mi>
+ <mo>!</mo>
+ <mi>r</mi>
+ <mo>!</mo>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mi>n</mi>
+ </mrow>
+ </mfenced>
+ <mo>!</mo>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mi>r</mi>
+ </mrow>
+ </mfenced>
+ <mo>!</mo>
+ </mrow>
+ <mrow>
+ <mi>N</mi>
+ <mo>!</mo>
+ <mi>k</mi>
+ <mo>!</mo>
+ <mfenced>
+ <mrow>
+ <mi>n</mi>
+ <mo>&#x2212;</mo>
+ <mi>k</mi>
+ </mrow>
+ </mfenced>
+ <mo>!</mo>
+ <mfenced>
+ <mrow>
+ <mi>r</mi>
+ <mo>&#x2212;</mo>
+ <mi>k</mi>
+ </mrow>
+ </mfenced>
+ <mo>!</mo>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mi>n</mi>
+ <mo>&#x2212;</mo>
+ <mi>r</mi>
+ <mo>+</mo>
+ <mi>k</mi>
+ </mrow>
+ </mfenced>
+ <mo>!</mo>
+ </mrow>
+ </mfrac>
+ <mspace width="1em"/>
+ <mo>;</mo>
+ <mspace width="1em"/>
+ <mi>max</mi>
+ <mfenced>
+ <mrow>
+ <mn>0,</mn>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mi>r</mi>
+ <mo>&#x2212;</mo>
+ <mi>n</mi>
+ <mo>+</mo>
+ <mi>k</mi>
+ </mrow>
+ </mfenced>
+ <mo>&lt;</mo>
+ <mo>=</mo>
+ <mi>k</mi>
+ <mo>&lt;</mo>
+ <mo>=</mo>
+ <mi>min</mi>
+ <mfenced>
+ <mrow>
+ <mi>r</mi>
+ <mo>,</mo>
+ <mi>n</mi>
+ </mrow>
+ </mfenced>
+ </mrow>
+</math>
+</body>
+</html>

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric1.png
==============================================================================
Binary file. No diff available.

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric1.svg
==============================================================================
Binary file. No diff available.

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric2.mml
==============================================================================
--- (empty file)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric2.mml 2009-01-10 05:26:59 EST (Sat, 10 Jan 2009)
@@ -0,0 +1,50 @@
+<?xml version='1.0'?>
+<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN'
+ 'http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd'
+ [<!ENTITY mathml 'http://www.w3.org/1998/Math/MathML'>]>
+<html xmlns='http://www.w3.org/1999/xhtml'>
+<head><title>hypergeometric2</title>
+<!-- MathML created with MathCast Equation Editor version 0.89 -->
+</head>
+<body>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mrow>
+ <mi>N</mi>
+ <mo>!</mo>
+ <mspace width="1em"/>
+ <mo>=</mo>
+ <mspace width="1em"/>
+ <munderover>
+ <mo>&#x220F;</mo>
+ <mrow>
+ <mi>i</mi>
+ <mo>=</mo>
+ <mn>0</mn>
+ </mrow>
+ <mrow>
+ <msub>
+ <mi>p</mi>
+ <mi>i</mi>
+ </msub>
+ <mo>&lt;</mo>
+ <mi>N</mi>
+ </mrow>
+ </munderover>
+ <msup>
+ <mrow>
+ <msub>
+ <mi>p</mi>
+ <mi>i</mi>
+ </msub>
+ </mrow>
+ <mrow>
+ <msub>
+ <mi>e</mi>
+ <mi>i</mi>
+ </msub>
+ </mrow>
+ </msup>
+ </mrow>
+</math>
+</body>
+</html>

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric2.png
==============================================================================
Binary file. No diff available.

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric2.svg
==============================================================================
Binary file. No diff available.

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric3.mml
==============================================================================
--- (empty file)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric3.mml 2009-01-10 05:26:59 EST (Sat, 10 Jan 2009)
@@ -0,0 +1,60 @@
+<?xml version='1.0'?>
+<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN'
+ 'http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd'
+ [<!ENTITY mathml 'http://www.w3.org/1998/Math/MathML'>]>
+<html xmlns='http://www.w3.org/1999/xhtml'>
+<head><title>hypergeometric3</title>
+<!-- MathML created with MathCast Equation Editor version 0.89 -->
+</head>
+<body>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mrow>
+ <mrow>
+ <msub>
+ <mi>e</mi>
+ <mi>i</mi>
+ </msub>
+ </mrow>
+ <mspace width="1em"/>
+ <mo>=</mo>
+ <mspace width="1em"/>
+ <munderover>
+ <mo>&#x2211;</mo>
+ <mrow>
+ <mi>j</mi>
+ <mo>=</mo>
+ <mn>1</mn>
+ </mrow>
+ <mrow>
+ <msubsup>
+ <mi>p</mi>
+ <mrow>
+ <mi>i</mi>
+ </mrow>
+ <mi>j</mi>
+ </msubsup>
+ <mo>&#x2264;</mo>
+ <mi>N</mi>
+ </mrow>
+ </munderover>
+ <mtext>fl&#x03BF;or</mtext>
+ <mfenced>
+ <mrow>
+ <mfrac>
+ <mi>N</mi>
+ <mrow>
+ <msubsup>
+ <mi>p</mi>
+ <mrow>
+ <mi>i</mi>
+ </mrow>
+ <mi>j</mi>
+ </msubsup>
+ </mrow>
+ </mfrac>
+ </mrow>
+ </mfenced>
+ </mrow>
+</math>
+</body>
+</html>

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric3.png
==============================================================================
Binary file. No diff available.

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric3.svg
==============================================================================
Binary file. No diff available.

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric4.mml
==============================================================================
--- (empty file)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric4.mml 2009-01-10 05:26:59 EST (Sat, 10 Jan 2009)
@@ -0,0 +1,60 @@
+<?xml version='1.0'?>
+<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN'
+ 'http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd'
+ [<!ENTITY mathml 'http://www.w3.org/1998/Math/MathML'>]>
+<html xmlns='http://www.w3.org/1999/xhtml'>
+<head><title>hypergeometric4</title>
+<!-- MathML created with MathCast Equation Editor version 0.89 -->
+</head>
+<body>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mrow>
+ <mi>f</mi>
+ <mfenced>
+ <mrow>
+ <mi>k</mi>
+ <mo>;</mo>
+ <mi>r</mi>
+ <mo>,</mo>
+ <mi>n</mi>
+ <mo>,</mo>
+ <mi>N</mi>
+ </mrow>
+ </mfenced>
+ <mspace width="1em"/>
+ <mo>=</mo>
+ <mspace width="1em"/>
+ <munderover>
+ <mo>&#x220F;</mo>
+ <mrow>
+ <mi>i</mi>
+ <mo>=</mo>
+ <mn>0</mn>
+ </mrow>
+ <mrow>
+ <msub>
+ <mi>p</mi>
+ <mi>i</mi>
+ </msub>
+ <mo>&lt;</mo>
+ <mi>N</mi>
+ </mrow>
+ </munderover>
+ <msup>
+ <mrow>
+ <msub>
+ <mi>p</mi>
+ <mi>i</mi>
+ </msub>
+ </mrow>
+ <mrow>
+ <msub>
+ <mi>e</mi>
+ <mi>i</mi>
+ </msub>
+ </mrow>
+ </msup>
+ </mrow>
+</math>
+</body>
+</html>

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric4.png
==============================================================================
Binary file. No diff available.

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric4.svg
==============================================================================
Binary file. No diff available.

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric5.mml
==============================================================================
--- (empty file)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric5.mml 2009-01-10 05:26:59 EST (Sat, 10 Jan 2009)
@@ -0,0 +1,159 @@
+<?xml version='1.0'?>
+<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN'
+ 'http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd'
+ [<!ENTITY mathml 'http://www.w3.org/1998/Math/MathML'>]>
+<html xmlns='http://www.w3.org/1999/xhtml'>
+<head><title>hypergeometric5</title>
+<!-- MathML created with MathCast Equation Editor version 0.89 -->
+</head>
+<body>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mrow>
+ <mtable>
+ <mtr>
+ <mtd>
+ <mi>f</mi>
+ <mfenced>
+ <mrow>
+ <mi>k</mi>
+ <mo>+</mo>
+ <mn>1</mn>
+ <mo>;</mo>
+ <mi>r</mi>
+ <mo>,</mo>
+ <mi>n</mi>
+ <mo>,</mo>
+ <mi>N</mi>
+ </mrow>
+ </mfenced>
+ <mspace width="1em"/>
+ <mo>=</mo>
+ <mspace width="1em"/>
+ <mfrac>
+ <mrow>
+ <mfenced>
+ <mrow>
+ <mi>n</mi>
+ <mo>&#x2212;</mo>
+ <mi>k</mi>
+ </mrow>
+ </mfenced>
+ <mfenced>
+ <mrow>
+ <mi>r</mi>
+ <mo>&#x2212;</mo>
+ <mi>k</mi>
+ </mrow>
+ </mfenced>
+ </mrow>
+ <mrow>
+ <mfenced>
+ <mrow>
+ <mi>k</mi>
+ <mo>+</mo>
+ <mn>1</mn>
+ </mrow>
+ </mfenced>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mi>n</mi>
+ <mo>&#x2212;</mo>
+ <mi>r</mi>
+ <mo>+</mo>
+ <mi>k</mi>
+ <mo>+</mo>
+ <mn>1</mn>
+ </mrow>
+ </mfenced>
+ </mrow>
+ </mfrac>
+ <mi>f</mi>
+ <mfenced>
+ <mrow>
+ <mi>k</mi>
+ <mo>;</mo>
+ <mi>r</mi>
+ <mo>,</mo>
+ <mi>n</mi>
+ <mo>,</mo>
+ <mi>N</mi>
+ </mrow>
+ </mfenced>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mi>f</mi>
+ <mfenced>
+ <mrow>
+ <mi>k</mi>
+ <mo>&#x2212;</mo>
+ <mn>1</mn>
+ <mo>;</mo>
+ <mi>r</mi>
+ <mo>,</mo>
+ <mi>n</mi>
+ <mo>,</mo>
+ <mi>N</mi>
+ </mrow>
+ </mfenced>
+ <mspace width="1em"/>
+ <mo>=</mo>
+ <mspace width="1em"/>
+ <mfrac>
+ <mrow>
+ <mi>x</mi>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mi>n</mi>
+ <mo>&#x2212;</mo>
+ <mi>r</mi>
+ <mo>+</mo>
+ <mi>k</mi>
+ </mrow>
+ </mfenced>
+ </mrow>
+ <mrow>
+ <mfenced>
+ <mrow>
+ <mi>n</mi>
+ <mo>&#x2212;</mo>
+ <mi>k</mi>
+ <mo>+</mo>
+ <mn>1</mn>
+ </mrow>
+ </mfenced>
+ <mfenced>
+ <mrow>
+ <mi>r</mi>
+ <mo>&#x2212;</mo>
+ <mi>k</mi>
+ <mo>+</mo>
+ <mn>1</mn>
+ </mrow>
+ </mfenced>
+ </mrow>
+ </mfrac>
+ <mi>f</mi>
+ <mfenced>
+ <mrow>
+ <mi>k</mi>
+ <mo>;</mo>
+ <mi>r</mi>
+ <mo>,</mo>
+ <mi>n</mi>
+ <mo>,</mo>
+ <mi>N</mi>
+ </mrow>
+ </mfenced>
+ </mtd>
+ </mtr>
+ </mtable>
+ </mrow>
+</math>
+</body>
+</html>

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric5.png
==============================================================================
Binary file. No diff available.

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric5.svg
==============================================================================
Binary file. No diff available.

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric6.mml
==============================================================================
--- (empty file)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric6.mml 2009-01-10 05:26:59 EST (Sat, 10 Jan 2009)
@@ -0,0 +1,295 @@
+<?xml version='1.0'?>
+<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN'
+ 'http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd'
+ [<!ENTITY mathml 'http://www.w3.org/1998/Math/MathML'>]>
+<html xmlns='http://www.w3.org/1999/xhtml'>
+<head><title>hypergeometric6</title>
+<!-- MathML created with MathCast Equation Editor version 0.89 -->
+</head>
+<body>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mrow>
+ <mtable>
+ <mtr>
+ <mtd>
+ <mtext>mean</mtext>
+ <mspace width="1em"/>
+ <mo>=</mo>
+ <mspace width="1em"/>
+ <mfrac>
+ <mrow>
+ <mi>r</mi>
+ <mi>n</mi>
+ </mrow>
+ <mi>N</mi>
+ </mfrac>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mtext>mode</mtext>
+ <mspace width="1em"/>
+ <mo>=</mo>
+ <mspace width="1em"/>
+ <mtext>floor</mtext>
+ <mfenced>
+ <mrow>
+ <mfrac>
+ <mrow>
+ <mfenced>
+ <mrow>
+ <mi>r</mi>
+ <mo>+</mo>
+ <mn>1</mn>
+ </mrow>
+ </mfenced>
+ <mfenced>
+ <mrow>
+ <mi>n</mi>
+ <mo>+</mo>
+ <mn>1</mn>
+ </mrow>
+ </mfenced>
+ </mrow>
+ <mrow>
+ <mi>N</mi>
+ <mo>+</mo>
+ <mn>2</mn>
+ </mrow>
+ </mfrac>
+ </mrow>
+ </mfenced>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mtext>variance</mtext>
+ <mspace width="1em"/>
+ <mo>=</mo>
+ <mspace width="1em"/>
+ <mfrac>
+ <mrow>
+ <mi>r</mi>
+ <mfenced>
+ <mrow>
+ <mfrac>
+ <mi>n</mi>
+ <mi>N</mi>
+ </mfrac>
+ </mrow>
+ </mfenced>
+ <mfenced>
+ <mrow>
+ <mn>1</mn>
+ <mo>&#x2212;</mo>
+ <mfrac>
+ <mi>n</mi>
+ <mi>N</mi>
+ </mfrac>
+ </mrow>
+ </mfenced>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mi>r</mi>
+ </mrow>
+ </mfenced>
+ </mrow>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mn>1</mn>
+ </mrow>
+ </mfenced>
+ </mfrac>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mtext>skewness</mtext>
+ <mspace width="1em"/>
+ <mo>=</mo>
+ <mspace width="1em"/>
+ <mfrac>
+ <mrow>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mn>2</mn>
+ <mi>n</mi>
+ </mrow>
+ </mfenced>
+ <msqrt>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mn>1</mn>
+ </mrow>
+ </mfenced>
+ </msqrt>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mn>2</mn>
+ <mi>r</mi>
+ </mrow>
+ </mfenced>
+ </mrow>
+ <mrow>
+ <msqrt>
+ <mrow>
+ <mi>r</mi>
+ <mi>n</mi>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mi>n</mi>
+ </mrow>
+ </mfenced>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mi>r</mi>
+ </mrow>
+ </mfenced>
+ </mrow>
+ </msqrt>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mn>2</mn>
+ </mrow>
+ </mfenced>
+ </mrow>
+ </mfrac>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mtext>kurtosis excess</mtext>
+ <mspace width="1em"/>
+ <mo>=</mo>
+ <mspace width="1em"/>
+ <mfenced>
+ <mrow>
+ <mfrac>
+ <mrow>
+ <msup>
+ <mi>N</mi>
+ <mn>2</mn>
+ </msup>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mn>1</mn>
+ </mrow>
+ </mfenced>
+ </mrow>
+ <mrow>
+ <mi>r</mi>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mn>2</mn>
+ </mrow>
+ </mfenced>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mn>3</mn>
+ </mrow>
+ </mfenced>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mi>r</mi>
+ </mrow>
+ </mfenced>
+ </mrow>
+ </mfrac>
+ </mrow>
+ </mfenced>
+ <mfenced>
+ <mrow>
+ <mfrac>
+ <mrow>
+ <mi>N</mi>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>+</mo>
+ <mn>1</mn>
+ </mrow>
+ </mfenced>
+ <mo>&#x2212;</mo>
+ <mn>6</mn>
+ <mi>N</mi>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mi>r</mi>
+ </mrow>
+ </mfenced>
+ </mrow>
+ <mrow>
+ <mi>n</mi>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mi>n</mi>
+ </mrow>
+ </mfenced>
+ </mrow>
+ </mfrac>
+ <mo>+</mo>
+ <mfrac>
+ <mrow>
+ <mn>3</mn>
+ <mi>r</mi>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>&#x2212;</mo>
+ <mi>r</mi>
+ </mrow>
+ </mfenced>
+ <mfenced>
+ <mrow>
+ <mi>N</mi>
+ <mo>+</mo>
+ <mn>6</mn>
+ </mrow>
+ </mfenced>
+ </mrow>
+ <mrow>
+ <msup>
+ <mi>N</mi>
+ <mn>2</mn>
+ </msup>
+ </mrow>
+ </mfrac>
+ <mo>&#x2212;</mo>
+ <mn>6</mn>
+ </mrow>
+ </mfenced>
+ </mtd>
+ </mtr>
+ </mtable>
+ </mrow>
+</math>
+</body>
+</html>

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric6.png
==============================================================================
Binary file. No diff available.

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/equations/hypergeometric6.svg
==============================================================================
Binary file. No diff available.

Modified: sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/dist_graphs.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/dist_graphs.cpp (original)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/dist_graphs.cpp 2009-01-10 05:26:59 EST (Sat, 10 Jan 2009)
@@ -38,6 +38,9 @@
 template<class T, class P>
 struct is_discrete_distribution<boost::math::poisson_distribution<T,P> >
    : public boost::mpl::true_{};
+template<class T, class P>
+struct is_discrete_distribution<boost::math::hypergeometric_distribution<T,P> >
+ : public boost::mpl::true_{};
 
 
 template <class Dist>
@@ -580,4 +583,22 @@
    poisson_plotter.add(boost::math::poisson_distribution<>(20), "&#x3BB;=50");
    poisson_plotter.plot("Poisson Distribution PDF", "poisson_pdf_1.svg");
 
+ distribution_plotter<boost::math::hypergeometric_distribution<> >
+ hypergeometric_plotter;
+ hypergeometric_plotter.add(boost::math::hypergeometric_distribution<>(30, 50, 500), "N=500, r=50, n=30");
+ hypergeometric_plotter.add(boost::math::hypergeometric_distribution<>(30, 100, 500), "N=500, r=100, n=30");
+ hypergeometric_plotter.add(boost::math::hypergeometric_distribution<>(30, 250, 500), "N=500, r=250, n=30");
+ hypergeometric_plotter.add(boost::math::hypergeometric_distribution<>(30, 400, 500), "N=500, r=400, n=30");
+ hypergeometric_plotter.add(boost::math::hypergeometric_distribution<>(30, 450, 500), "N=500, r=450, n=30");
+ hypergeometric_plotter.plot("Hypergeometric Distribution PDF", "hypergeometric_pdf_1.svg");
+
+ distribution_plotter<boost::math::hypergeometric_distribution<> >
+ hypergeometric_plotter2;
+ hypergeometric_plotter2.add(boost::math::hypergeometric_distribution<>(50, 50, 500), "N=500, r=50, n=50");
+ hypergeometric_plotter2.add(boost::math::hypergeometric_distribution<>(100, 50, 500), "N=500, r=50, n=100");
+ hypergeometric_plotter2.add(boost::math::hypergeometric_distribution<>(250, 50, 500), "N=500, r=50, n=250");
+ hypergeometric_plotter2.add(boost::math::hypergeometric_distribution<>(400, 50, 500), "N=500, r=50, n=400");
+ hypergeometric_plotter2.add(boost::math::hypergeometric_distribution<>(450, 50, 500), "N=500, r=50, n=450");
+ hypergeometric_plotter2.plot("Hypergeometric Distribution PDF", "hypergeometric_pdf_2.svg");
+
 }

Modified: sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/generate.sh
==============================================================================
--- sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/generate.sh (original)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/generate.sh 2009-01-10 05:26:59 EST (Sat, 10 Jan 2009)
@@ -7,8 +7,8 @@
 #
 # Paths to tools come first, change these to match your system:
 #
-math2svg='C:\download\open\SVGMath-0.3.1\math2svg.py'
-python=/cygdrive/c/Python25/python.exe
+math2svg='d:\download\open\SVGMath-0.3.1\math2svg.py'
+python=/cygdrive/c/Python26/python.exe
 inkscape=/cygdrive/c/progra~1/Inkscape/inkscape
 # Image DPI:
 dpi=96
@@ -24,3 +24,4 @@
 
 
 
+

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/hypergeometric_pdf_1.png
==============================================================================
Binary file. No diff available.

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/hypergeometric_pdf_1.svg
==============================================================================
Binary file. No diff available.

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/hypergeometric_pdf_2.png
==============================================================================
Binary file. No diff available.

Added: sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/hypergeometric_pdf_2.svg
==============================================================================
Binary file. No diff available.


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk