Update of /cvsroot/boost-sandbox/boost-sandbox/boost/math/distributions
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22337/boost-sandbox/boost/math/distributions
Modified Files:
Tag: math_toolkit
normal.hpp students_t.hpp uniform.hpp
Log Message:
cosmetic updates
Index: uniform.hpp
===================================================================
RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/math/distributions/Attic/uniform.hpp,v
retrieving revision 1.1.2.10
retrieving revision 1.1.2.11
diff -u -d -r1.1.2.10 -r1.1.2.11
--- uniform.hpp 14 Feb 2007 10:15:26 -0000 1.1.2.10
+++ uniform.hpp 16 Mar 2007 14:55:12 -0000 1.1.2.11
@@ -158,7 +158,7 @@
RealType lower = dist.lower();
RealType upper = dist.upper();
RealType result; // of checks.
- if(false == detail::check_uniform(BOOST_CURRENT_FUNCTION,lower, upper, &result))
+ if(false == detail::check_uniform(BOOST_CURRENT_FUNCTION, lower, upper, &result))
{
return result;
}
Index: normal.hpp
===================================================================
RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/math/distributions/Attic/normal.hpp,v
retrieving revision 1.1.2.10
retrieving revision 1.1.2.11
diff -u -d -r1.1.2.10 -r1.1.2.11
--- normal.hpp 29 Dec 2006 18:27:26 -0000 1.1.2.10
+++ normal.hpp 16 Mar 2007 14:55:12 -0000 1.1.2.11
@@ -30,12 +30,12 @@
: m_mean(mean), m_sd(sd) {}
RealType mean()const
- {
+ { // location
return m_mean;
}
RealType standard_deviation()const
- {
+ { // scale
return m_sd;
}
private:
@@ -63,8 +63,6 @@
return std::pair<RealType, RealType>(-max_value<RealType>(), max_value<RealType>()); // - to + infinity.
}
-
-
template <class RealType>
RealType pdf(const normal_distribution<RealType>& dist, const RealType& x)
{
@@ -95,7 +93,6 @@
RealType result;
result = boost::math::erfc(-diff) / 2;
-
return result;
}
@@ -111,7 +108,6 @@
r = boost::math::erfc_inv(2 * p);
r = -r;
-
r *= sd * constants::root_two<RealType>();
r += mean;
@@ -145,12 +141,9 @@
RealType q = c.param;
RealType r;
-
r = boost::math::erfc_inv(2 * q);
-
r *= sd * constants::root_two<RealType>();
r += mean;
-
return r;
}
@@ -204,5 +197,5 @@
// keep compilers that support two-phase lookup happy.
#include <boost/math/distributions/detail/derived_accessors.hpp>
-#endif // BOOST_STATS_STUDENTS_T_HPP
+#endif // BOOST_STATS_NORMAL_HPP
Index: students_t.hpp
===================================================================
RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/math/distributions/Attic/students_t.hpp,v
retrieving revision 1.1.2.23
retrieving revision 1.1.2.24
diff -u -d -r1.1.2.23 -r1.1.2.24
--- students_t.hpp 19 Jan 2007 17:05:15 -0000 1.1.2.23
+++ students_t.hpp 16 Mar 2007 14:55:12 -0000 1.1.2.24
@@ -30,10 +30,10 @@
typedef RealType value_type;
students_t_distribution(RealType i) : m_df(i)
- {
+ { // Constructor.
RealType result;
detail::check_df(
- BOOST_CURRENT_FUNCTION, m_df, &result);
+ BOOST_CURRENT_FUNCTION, m_df, &result);
} // students_t_distribution
RealType degrees_of_freedom()const
|