Boost logo

Boost :

From: Paul A. Bristow (boost_at_[hidden])
Date: 2003-04-16 03:55:01


This looks interesting but sadly again MSVC 7.0 balks at compiling at

        void Reset()
        {
                xFilt.Reset();
                xSqrFilt.Reset();
        }

j:\Cpp\stats2\stats2.hpp(85) : error C2228: left of '.Reset' must have
class/struct/union type
        j:\Cpp\stats2\stats2.hpp(83) : while compiling class-template member
function 'void Stat<T,FILT1,FILT2>::Reset(void)'
        with
        [
            T=double,
            FILT1=size_t,
            FILT2=one_pole_filter<Stat_t<double>::value_t,double,double>
        ]

Any suggestions?

Paul

Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB UK
+44 1539 561830 Mobile +44 7714 33 02 04
Mobile mailto:pabristow_at_[hidden]
mailto:pbristow_at_[hidden]

> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]]On Behalf Of Neal D. Becker
> Sent: Wednesday, April 09, 2003 8:49 PM
> To: boost_at_[hidden]
> Subject: [boost] Statistics refactored
>
>
> I refactored the statistics class. I hope it is an improvement.
>
> The change is that estimators for E(x) and E(x^2) are no longer
> fixed, but are
> pluggable template parameters. By default, first order recursive filters
> would be used (one pole filters). Any thoughts? The code is small, so I'll
> just post it here:
>
>


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