Boost logo

Boost Users :

Subject: Re: [Boost-users] [accumulator] with complex domain model
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2013-05-21 19:59:08


On Tue, May 21, 2013 at 4:38 PM, Eric Niebler <eniebler_at_[hidden]> wrote:
> On 13-05-20 11:29 AM, Michael Powell wrote:
>> Hello,
>>
>> We've got a complex domain model which must be accumulated and
>> eventually averaged together. I am already overloading the operators
>> for that model.
>>
>> We could roll our own with just the operators we'll need to
>> accommodate, like +, +=, /, etc, but would like to take a gander at
>> Boost.Accumulator first. Would be much better, obviously, rather than
>> having to reinvent the wheel.
>>
>> How doable would it be to accumulate an arbitrarily complex domain
>> model. That's assuming that it is sensible to add, average, and so on,
>> the model, which it is.
>
> What do you mean by "accumulate a domain model"?

Basically, the smallest domain object can be averaged: so a plausible
application for accumulator would be to tally (sum up) those
instances, followed by a mean average.

> --
> Eric Niebler
> Boost.org
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net