Filters 1.0
LPF, HPF, BPF, BSF, SRL
Loading...
Searching...
No Matches
ma.h File Reference

Moving-average low-pass filter. More...

#include <cstdint>
#include <cmath>
#include "../../src/low_pass/ma.tpp"
Include dependency graph for ma.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  filter::low_pass::MA< T, N >
 Fixed-window moving-average low-pass filter. More...

Namespaces

namespace  filter
 Contains digital signal filtering algorithms.
namespace  filter::low_pass
namespace  low_pass
 Contains low-pass filter implementations.

Detailed Description

Moving-average low-pass filter.

This file defines the filter::low_pass::MA class, which implements a moving-average low-pass filter using a fixed-size sliding window.

The filter maintains a window of the most recent N input samples and calculates their average to produce the filtered output.

The window size N is specified at compile time.

A larger window provides stronger smoothing but introduces greater delay and reduces the effective bandwidth of the filter.

Template Parameters
TNumeric data type used for filter calculations.
NNumber of samples in the moving-average window.
Author
Abhinay Kumar
Version
1.0.0

Definition in file ma.h.