Accumulators accumulators. roc_distribution

Now I am trying to describe Boost.accumulators. roc_distribution To define ROC curve data, we need two p_square_cumulative_distribution 1. cumulative_distribution ture or false potive 2. cumulative_distribution ture or false negative One of the cumulative_distribution can be defined by using dependencies struct roc_distribution : depends_on< p_square_cumulative_distribution > … But I can not find way to use two different cumulative_distribution in single acc class. How to use two different cumulative_distribution in single acc class like the following ? struct roc_distribution_impl... { template<typename Args> void operator ()(Args const &args,bool positive_or_negative) if(positive_or_negative) positive_p_square_cumulative_distribution … else negative_p_square_cumulative_distribution … … }

Niitsuma Hirotaka wrote:
Now I am trying to describe Boost.accumulators. roc_distribution
To define ROC curve data, we need two p_square_cumulative_distribution 1. cumulative_distribution ture or false potive 2. cumulative_distribution ture or false negative One of the cumulative_distribution can be defined by using dependencies
struct roc_distribution : depends_on< p_square_cumulative_distribution > …
But I can not find way to use two different cumulative_distribution in single acc class. How to use two different cumulative_distribution in single acc class like the following ?
struct roc_distribution_impl...
{ template<typename Args> void operator ()(Args const &args,bool positive_or_negative) if(positive_or_negative) positive_p_square_cumulative_distribution … else negative_p_square_cumulative_distribution … … }
Could you please send a complete program that demonstrates the problem? Thanks. -- Eric Niebler Boost Consulting www.boost-consulting.com

Could you please send a complete program that demonstrates the problem? Thanks.
plz see roc_curve.hpp In this file accumulators.roc_curve is implimented, but I can not complie this by some err. May be defining accumulators inside accumulators causes some problem. roc_distribution.hpp is simple impl without using accumulators inside accumulators. It works. test program is test.cpp
participants (2)
-
Eric Niebler
-
Niitsuma Hirotaka