// 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 // 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 // for negative_binomial_distribution #include 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: */