Opened 8 years ago

#10867 new Bugs

Undocumented precondition for extended_p_square accumulator

Reported by: Jens.Decker@… Owned by: Eric Niebler
Milestone: To Be Determined Component: accumulator
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description

probs has to be sorted ascendingly for correct results. This is not mentioned in the documentation.

typedef accumulator_set<double, stats<tag::extended_p_square> > accumulator_t; accumulator_t acc(tag::extended_p_square::probabilities = probs);

Attachments (1)

accumulator-test-for-boost.cpp (929 bytes ) - added by Jens.Decker@… 8 years ago.
test code showing the missbehaviour if probabilities are not sorted

Download all attachments as: .zip

Change History (1)

by Jens.Decker@…, 8 years ago

test code showing the missbehaviour if probabilities are not sorted

Note: See TracTickets for help on using tickets.