[Rock-dev] Statistics class in base

Jakob Schwendner jakob.schwendner at dfki.de
Mon May 14 10:22:41 CEST 2012


On 05/14/2012 10:11 AM, Alexander Duda wrote:
> On 05/14/2012 09:42 AM, Jakob Schwendner wrote:
>> Hi,
>>
>> I often find myself needing (and then writing) a small class that does
>> perform simple statistics, like mean, variance, stdev, min, max. I've
>> generalized this a little and made a small templated class out of it,
>> that could in principle also be used for doing the same on
>> Eigen::Vector. I would like to add it as base/stats.h. Any objections or
>> suggestions where to put it instead?
> Personally I would not put it into base/types because base/types is
> already very crowded and base/stats.h would not be a type sent on an
> orocos port.
>
> For me this sounds more like tooling for digital signal processing. Some
> students and me started a package some months ago called 'dsp_acoustics'
> (I am open for remaining the package) which has some templates for std
> containers (FIR-Filter,poly-fit,...).
>
> Greets
> Alex
>
it is tooling indeed. I would shy away from using a package 
dsp_acoustics, though.
Maybe renaming it to something like numeric_tools?

Jakob




More information about the Rock-dev mailing list