[accumulator] compiler error with quantil

Hello,
I try to create a complex accumulator. I would like to use an accumulator for a box plot with the whisker data ( http://en.wikipedia.org/wiki/Box_plot ).
My typedef shows at the momen like this:
typedef boost::accumulators::accumulator_set Accumulator; I would like to create the 25% & 75% quantil and replace the median with the 50% quantil, so I have defined the ctor
accumulator call like this:
boost::array

On 2013-06-11 15:09:40 +0200, Philipp Kraus said:
I try to create a complex accumulator. I would like to use an accumulator for a box plot with the whisker data ( http://en.wikipedia.org/wiki/Box_plot ).
This short example
#include accumulator_t; int main()
{
boost::array

On 6/13/2013 3:56 AM, Philipp Kraus wrote:
On 2013-06-11 15:09:40 +0200, Philipp Kraus said:
I try to create a complex accumulator. I would like to use an accumulator for a box plot with the whisker data ( http://en.wikipedia.org/wiki/Box_plot ).
This short example
#include
#include #include #include #include #include #include #include #include #include
whoops, should be:
#include
#include
using namespace boost::accumulators;
typedef accumulator_set
accumulator_t;
int main() { boost::array
probs = {0.25, 0.50, 0.75}; accumulator_t acc(extended_p_square_probabilities = probs); } compiles only, if I comment the //* line, but with the quantil tag the compiler creates this errors:
<snip> The errors went away for me when I included the correct header. You might check the docs for the statistics you're using. The docs aren't great, but they at least tell you what headers to include. http://www.boost.org/doc/libs/1_53_0/doc/html/accumulators/user_s_guide.html... -- Eric Niebler Boost.org http://www.boost.org

On 2013-06-14 01:02:35 +0200, Eric Niebler said:
On 6/13/2013 3:56 AM, Philipp Kraus wrote:
On 2013-06-11 15:09:40 +0200, Philipp Kraus said:
I try to create a complex accumulator. I would like to use an accumulator for a box plot with the whisker data ( http://en.wikipedia.org/wiki/Box_plot ).
This short example
#include
#include #include #include #include #include #include #include #include #include whoops, should be:
#include
#include
using namespace boost::accumulators;
typedef accumulator_set
accumulator_t;
int main() { boost::array
probs = {0.25, 0.50, 0.75}; accumulator_t acc(extended_p_square_probabilities = probs); } compiles only, if I comment the //* line, but with the quantil tag the compiler creates this errors:
<snip>
The errors went away for me when I included the correct header. You might check the docs for the statistics you're using. The docs aren't great, but they at least tell you what headers to include.
http://www.boost.org/doc/libs/1_53_0/doc/html/accumulators/user_s_guide.html...
I can solve the problem :-P
I have include these headers:
#include
participants (2)
-
Eric Niebler
-
Philipp Kraus