title: How to use boost distribution functions? How about bisection?
body: <p>I'm having a hard time to understand how I could use binomial and normal ( gaussian ) distributions in boost. I need to get a single values from these functions. I'm sure I'm probably trying to use these functions wrongly at the moment but here is what I have so far:</p>
  
  <pre><code>#include &lt;boost/math/distributions.hpp&gt;
  #include &lt;boost/math/tools/roots.hpp&gt;
  #include &lt;boost/random/variate_generator.hpp&gt;
  #include &lt;boost/random.hpp&gt;
  
  //valueH is assigned before
  int value;
  /* Should this assign value to "value" ?*/
  value = boost::math::binomial_distribution&lt;&gt; value(1,valueH);
  </code></pre>
  
  <p>and normal distribution as</p>
  
  <pre><code>normal norm;
  
  double someValue = boost::math::pdf(norm, (value1*value2+value3)/(value1*sqrt(value2)));
  </code></pre>
  
  <p>or should I use  boost::math::normal_distribution&lt;> here or how this works ? I've read boost documentation and still I don't get how I could assign values from distributions. I've also read 
  <a href="https://stackoverflow.com/questions/1118482/c-tr1-how-to-use-the-normal-distribution">C++ TR1: how to use the normal_distribution?</a> so do I need to use some random number generator and generate numbers as the link shows and does that allow me to assign single values to variables ?</p>
  
  <p>I'm sorry if this a bit messy message but anyway thanks !</p>
  
  <p>Okay so far I have understood binomial and got it working, now I need to get normal distribution to work... Referring to link above, my situation differs from that I just need a one value but I would like to call normal distribution with a value. Like "give me N(0.1) with number 2 or so.</p>
  
  <p>Well I thought this was getting easier but seems it isn't I would like to use boost bisection function <a href="http://www.boost.org/doc/libs/1_46_1/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/roots2.html" rel="nofollow noreferrer">Bisection</a> but the problems is that sometimes I have only function, min and max, and the bisection function needs at least 4 arguments 4th argument is Tol tol.. which is some kind of tolerance but could I just assign it to 0 if I want to find an absolute value or do I need to write my own bisection with 3 arguments ?</p>