]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | <html> |
2 | <head> | |
3 | <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> | |
4 | <title>Headers and Namespaces</title> | |
5 | <link rel="stylesheet" href="../../../math.css" type="text/css"> | |
6 | <meta name="generator" content="DocBook XSL Stylesheets V1.77.1"> | |
7 | <link rel="home" href="../../../index.html" title="Math Toolkit 2.5.1"> | |
8 | <link rel="up" href="../overview.html" title="Overview of Distributions"> | |
9 | <link rel="prev" href="../overview.html" title="Overview of Distributions"> | |
10 | <link rel="next" href="objects.html" title="Distributions are Objects"> | |
11 | </head> | |
12 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> | |
13 | <table cellpadding="2" width="100%"><tr> | |
14 | <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> | |
15 | <td align="center"><a href="../../../../../../../index.html">Home</a></td> | |
16 | <td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> | |
17 | <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> | |
18 | <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> | |
19 | <td align="center"><a href="../../../../../../../more/index.htm">More</a></td> | |
20 | </tr></table> | |
21 | <hr> | |
22 | <div class="spirit-nav"> | |
23 | <a accesskey="p" href="../overview.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../overview.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="objects.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> | |
24 | </div> | |
25 | <div class="section"> | |
26 | <div class="titlepage"><div><div><h4 class="title"> | |
27 | <a name="math_toolkit.stat_tut.overview.headers"></a><a class="link" href="headers.html" title="Headers and Namespaces">Headers and | |
28 | Namespaces</a> | |
29 | </h4></div></div></div> | |
30 | <p> | |
31 | All the code in this library is inside namespace boost::math. | |
32 | </p> | |
33 | <p> | |
34 | In order to use a distribution <span class="emphasis"><em>my_distribution</em></span> you | |
35 | will need to include either the header <boost/math/my_distribution.hpp> | |
36 | or the "include all the distributions" header: <boost/math/distributions.hpp>. | |
37 | </p> | |
38 | <p> | |
39 | For example, to use the Students-t distribution include either <boost/math/students_t.hpp> | |
40 | or <boost/math/distributions.hpp> | |
41 | </p> | |
42 | <p> | |
43 | You also need to bring distribution names into scope, perhaps with a <code class="computeroutput"><span class="keyword">using</span> <span class="keyword">namespace</span> | |
44 | <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">;</span></code> | |
45 | declaration, | |
46 | </p> | |
47 | <p> | |
48 | or specific <code class="computeroutput"><span class="keyword">using</span></code> declarations | |
49 | like <code class="computeroutput"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">normal</span><span class="special">;</span></code> (<span class="bold"><strong>recommended</strong></span>). | |
50 | </p> | |
51 | <div class="caution"><table border="0" summary="Caution"> | |
52 | <tr> | |
53 | <td rowspan="2" align="center" valign="top" width="25"><img alt="[Caution]" src="../../../../../../../doc/src/images/caution.png"></td> | |
54 | <th align="left">Caution</th> | |
55 | </tr> | |
56 | <tr><td align="left" valign="top"><p> | |
57 | Some math function names are also used in namespace std so including | |
58 | <random> could cause ambiguity! | |
59 | </p></td></tr> | |
60 | </table></div> | |
61 | </div> | |
62 | <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> | |
63 | <td align="left"></td> | |
64 | <td align="right"><div class="copyright-footer">Copyright © 2006-2010, 2012-2014 Nikhar Agrawal, | |
65 | Anton Bikineev, Paul A. Bristow, Marco Guazzone, Christopher Kormanyos, Hubert | |
66 | Holin, Bruno Lalande, John Maddock, Jeremy Murphy, Johan Råde, Gautam Sewani, | |
67 | Benjamin Sobotta, Thijs van den Berg, Daryle Walker and Xiaogang Zhang<p> | |
68 | Distributed under the Boost Software License, Version 1.0. (See accompanying | |
69 | file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) | |
70 | </p> | |
71 | </div></td> | |
72 | </tr></table> | |
73 | <hr> | |
74 | <div class="spirit-nav"> | |
75 | <a accesskey="p" href="../overview.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../overview.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="objects.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> | |
76 | </div> | |
77 | </body> | |
78 | </html> |