2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 16:32:10 +00:00
Files
math/example/negative_binomial_example3.cpp
Paul A. Bristow cb82bea11e Paul's Big policy revison
[SVN r38413]
2007-08-03 10:13:47 +00:00

47 lines
1.0 KiB
C++

// negative_binomial_example3.cpp
// Copyright Paul A. Bristow 2007.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
// Example 3 of using constructing distributions, mainly negative_binomial.
#include <boost/math/distributions/negative_binomial.hpp> // for negative_binomial_distribution
using boost::math::negative_binomial_distribution; // default type is double.
using boost::math::negative_binomial; // typedef provides default type is double.
#include <boost/math/distributions/binomial.hpp> // for negative_binomial_distribution
#include <iostream>
using std::cout;
using std::endl;
int main()
{
cout << "Example 3 constructing Distributions (Negative_binomial).";
#if defined(__FILE__) && defined(__TIMESTAMP__)
cout << " " << __FILE__ << ' ' << __TIMESTAMP__ << ' '<< _MSC_FULL_VER << "\n";
#endif
cout << endl;
// TODO!
return 0;
} // int main()
/*
Output is:
*/