Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2007-02-16 22:24:30


"Matthias Troyer" <troyer_at_[hidden]> wrote in message
news:CD2EF89F-C4F5-4DC7-B880-3168CAAC948E_at_phys.ethz.ch...
>
> On 16 Feb 2007, at 17:30, Gennadiy Rozental wrote:
>>> One problem I see with this is: how does the tracked_var know when to
>>> record the current value if it does not change? Do I need to do
>>>
>>> v += 0.
>>>
>>> if I want to enforce a sample even when the value does not change?
>>
>> How do you do it with current interface?
>>
>> IMO it's comparitevely rare case and both v += 0 and v = v should
>> work.
>
> It's actually a pretty common case. If you perform a Monte Carlo
> simulation and you reject an update to your configuration, you will
> need to measure the current value again.

Well, probably in your problem domain, not mine ;) I would guess that on a
complete map of projects that need to keeps statistics of some values, Monte
Carlo
simulation may not be that prominent.

Anyway. IMO almost any solution would be good enough for me. v.update()
would work either.

Gennadiy


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