comparison DEPENDENCIES/generic/include/boost/math/distributions/chi_squared.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
52 // 52 //
53 RealType m_df; // degrees of freedom is a positive real number. 53 RealType m_df; // degrees of freedom is a positive real number.
54 }; // class chi_squared_distribution 54 }; // class chi_squared_distribution
55 55
56 typedef chi_squared_distribution<double> chi_squared; 56 typedef chi_squared_distribution<double> chi_squared;
57
58 #ifdef BOOST_MSVC
59 #pragma warning(push)
60 #pragma warning(disable:4127)
61 #endif
57 62
58 template <class RealType, class Policy> 63 template <class RealType, class Policy>
59 inline const std::pair<RealType, RealType> range(const chi_squared_distribution<RealType, Policy>& /*dist*/) 64 inline const std::pair<RealType, RealType> range(const chi_squared_distribution<RealType, Policy>& /*dist*/)
60 { // Range of permissible values for random variable x. 65 { // Range of permissible values for random variable x.
61 if (std::numeric_limits<RealType>::has_infinity) 66 if (std::numeric_limits<RealType>::has_infinity)
66 { 71 {
67 using boost::math::tools::max_value; 72 using boost::math::tools::max_value;
68 return std::pair<RealType, RealType>(static_cast<RealType>(0), max_value<RealType>()); // 0 to + max. 73 return std::pair<RealType, RealType>(static_cast<RealType>(0), max_value<RealType>()); // 0 to + max.
69 } 74 }
70 } 75 }
76
77 #ifdef BOOST_MSVC
78 #pragma warning(pop)
79 #endif
71 80
72 template <class RealType, class Policy> 81 template <class RealType, class Policy>
73 inline const std::pair<RealType, RealType> support(const chi_squared_distribution<RealType, Policy>& /*dist*/) 82 inline const std::pair<RealType, RealType> support(const chi_squared_distribution<RealType, Policy>& /*dist*/)
74 { // Range of supported values for random variable x. 83 { // Range of supported values for random variable x.
75 // This is range where cdf rises from 0 to 1, and outside it, the pdf is zero. 84 // This is range where cdf rises from 0 to 1, and outside it, the pdf is zero.