mirror of
https://github.com/boostorg/math.git
synced 2026-01-29 19:52:08 +00:00
MPFR Support. New distributions: laplace, logistic and hypergeometric. Added PCH support to the Jamfiles for faster build times. Added C# usage example. Updated and regenerated docs. Also fixes #2799 and updates the tests to catch this failure in future. [SVN r51455]
68 lines
1.9 KiB
C++
68 lines
1.9 KiB
C++
// Copyright John Maddock 2008.
|
|
// 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)
|
|
//
|
|
// Basic sanity check that header <boost/math/distributions/non_central_beta.hpp>
|
|
// #includes all the files that it needs to.
|
|
//
|
|
// In order to pass our conceptual tests, we need to forward declare
|
|
// those functoins that the non-central beta (deliberately) doesn't
|
|
// implement. These declarations have to appear *before* the
|
|
// non central beta is defined, otherwise two-phase lookup
|
|
// won't find them :-(
|
|
//
|
|
#include <boost/math/distributions/fwd.hpp>
|
|
|
|
namespace boost{ namespace math{
|
|
|
|
template <class T, class Policy>
|
|
T mean(const non_central_beta_distribution<T, Policy>&)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
template <class T, class Policy>
|
|
T variance(const non_central_beta_distribution<T, Policy>&)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
template <class T, class Policy>
|
|
T skewness(const non_central_beta_distribution<T, Policy>&)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
template <class T, class Policy>
|
|
T kurtosis(const non_central_beta_distribution<T, Policy>&)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
template <class T, class Policy>
|
|
T kurtosis_excess(const non_central_beta_distribution<T, Policy>&)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
}}
|
|
|
|
#include <boost/math/distributions/non_central_beta.hpp>
|
|
//
|
|
// Note this header includes no other headers, this is
|
|
// important if this test is to be meaningful:
|
|
//
|
|
#include "test_compile_result.hpp"
|
|
|
|
void check()
|
|
{
|
|
TEST_DIST_FUNC(non_central_beta)
|
|
}
|
|
|
|
template class boost::math::non_central_beta_distribution<float, boost::math::policies::policy<> >;
|
|
template class boost::math::non_central_beta_distribution<double, boost::math::policies::policy<> >;
|
|
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
|
|
template class boost::math::non_central_beta_distribution<long double, boost::math::policies::policy<> >;
|
|
#endif
|