Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2006-12-18 11:35:57


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk