Skip to content

Something must be wrong in the template... #9

@FredM67

Description

@FredM67

As far as I've understood the doc, all these lines should be equivalent:
EwmaT<int32_t> ewmat_sliding_Average(1, 125, 0); => result is ok !
EwmaT<int32_t> ewmat_sliding_Average(4, 500, 0); => result is KO !
EwmaT<int32_t> ewmat_sliding_Average(8, 1000, 0); => result is KO !

But it looks like, at some time in the calculation, there's an overflow (I add only values between 0 and 30000).

Some compile-time validation or so should be implemented to know what is the limit, .... or at least documented !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions