|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r60948 - sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/empirical_distribution
From: erwann.rogard_at_[hidden]
Date: 2010-03-30 11:34:42
Author: e_r
Date: 2010-03-30 11:34:41 EDT (Tue, 30 Mar 2010)
New Revision: 60948
URL: http://svn.boost.org/trac/boost/changeset/60948
Log:
m
Text files modified:
sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/empirical_distribution/count.hpp | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
Modified: sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/empirical_distribution/count.hpp
==============================================================================
--- sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/empirical_distribution/count.hpp (original)
+++ sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/empirical_distribution/count.hpp 2010-03-30 11:34:41 EDT (Tue, 30 Mar 2010)
@@ -93,13 +93,13 @@
).value;
}
- template<typename Map>
+ template<typename Map>
typename boost::range_iterator<const Map>::type
- bound(
- const Map& map,
+ bound(
+ const Map& map,
const sample_type& x
)const{
- return map.upper_bound(x);
+ return map.upper_bound(x);
}
struct accumulator{
@@ -121,16 +121,16 @@
namespace tag
{
- template<bool Cum>
+ template<bool Cum>
struct count: boost::accumulators::depends_on<
boost::statistics::detail
::empirical_distribution::tag::ordered_sample
>
{
struct impl{
- template<typename T,typename W>
+ template<typename T,typename W>
struct apply{
- typedef boost::statistics::detail::empirical_distribution
+ typedef boost::statistics::detail::empirical_distribution
::impl::count<T,Cum> type;
};
};
@@ -138,12 +138,12 @@
}
namespace result_of{
- template<bool Cum,typename AccSet>
+ template<bool Cum,typename AccSet>
struct count{
typedef boost::statistics::detail
::empirical_distribution::tag::count<Cum> tag_;
- typedef typename
- boost::accumulators::detail::template
+ typedef typename
+ boost::accumulators::detail::template
extractor_result<AccSet,tag_>::type type;
};
@@ -152,8 +152,8 @@
{
// Usage : count<Cum>(acc,x)
- template<bool Cum,typename AccSet,typename T>
- typename boost::statistics::detail
+ template<bool Cum,typename AccSet,typename T>
+ typename boost::statistics::detail
::empirical_distribution::result_of::template count<Cum,AccSet>::type
count(AccSet const& acc,const T& x)
{
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk