Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#pragma once
#include <cstddef>
namespace Espfc::Utils {
template<typename SampleType, size_t MaxSize>
class Sma
{
public:
Sma();
void begin(size_t count);
SampleType update(const SampleType& input);
private:
SampleType _samples[MaxSize];
SampleType _sum;
size_t _idx;
size_t _count;
float _inv_count;
};
} // namespace Espfc::Utils
66c1bda98This file is pinned to the selected release. Download the original to open it in your design tool.