Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50629 - sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs
From: pbristow_at_[hidden]
Date: 2009-01-16 09:18:09


Author: pbristow
Date: 2009-01-16 09:18:08 EST (Fri, 16 Jan 2009)
New Revision: 50629
URL: http://svn.boost.org/trac/boost/changeset/50629

Log:
added laplace distribution
Text files modified:
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/graphs/dist_graphs.cpp | 9 +++++++++
   1 files changed, 9 insertions(+), 0 deletions(-)

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-16 09:18:08 EST (Fri, 16 Jan 2009)
@@ -333,6 +333,15 @@
    normal_plotter.add(boost::math::normal(1, 1), "μ = 1, σ = 1");
    normal_plotter.plot("Normal Distribution PDF", "normal_pdf.svg");
 
+ distribution_plotter<boost::math::laplace>
+ laplace_plotter;
+ laplace_plotter.add(boost::math::laplace(0, 1), "&#x3BC; = 0, &#x3C3; = 1");
+ laplace_plotter.add(boost::math::laplace(0, 0.5), "&#x3BC; = 0, &#x3C3; = 0.5");
+ laplace_plotter.add(boost::math::laplace(0, 2), "&#x3BC; = 0, &#x3C3; = 2");
+ laplace_plotter.add(boost::math::laplace(-1, 1), "&#x3BC; = -1, &#x3C3; = 1");
+ laplace_plotter.add(boost::math::laplace(1, 1), "&#x3BC; = 1, &#x3C3; = 1");
+ laplace_plotter.plot("Laplace Distribution PDF", "laplace_pdf.svg");
+
    distribution_plotter<boost::math::non_central_chi_squared>
       nc_cs_plotter;
    nc_cs_plotter.add(boost::math::non_central_chi_squared(20, 0), "v=20, &#x3BB;=0");


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