
In your case, Boost.Accumulators would be useful to update a contingency table as observations are accumulated. The actual statistics would be in
Please find such an accumulator here: http://svn.boost.org/svn/boost/sandbox/statistics/non_parametric/boost/stati... An example side by side with R code https://svn.boost.org/svn/boost/sandbox/statistics/non_parametric/libs/stati... Warning : tested under OSX only, for now. This has necessitated extensions: http://svn.boost.org/svn/boost/sandbox/statistics/support/boost/accumulators... http://svn.boost.org/svn/boost/sandbox/statistics/support/boost/fusion/ http://svn.boost.org/svn/boost/sandbox/statistics/support/boost/mpl/ May the authors of the relevant library please notify me if they think feature requests are warranted? Thanks.