REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
running_avg.h File Reference
#include <array>
Include dependency graph for running_avg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  utils::RunningAverage< T >
 

Namespaces

namespace  utils
 

Functions

template<class T , std::size_t N>
std::array< T, N > operator+ (const std::array< T, N > &l, const std::array< T, N > &r)
 
template<class T , std::size_t N>
std::array< T, N > operator- (const std::array< T, N > &l, const std::array< T, N > &r)
 
template<class T , std::size_t N>
std::array< T, N > operator* (const std::array< T, N > &l, const float &r)
 
template<class T , std::size_t N>
std::array< T, N > operator* (const float &l, const std::array< T, N > &r)
 
template<typename Type , typename OtherType , std::size_t Size, typename... Types, class = typename std::enable_if<sizeof...(Types) != Size>::type>
constexpr std::array< Type, Size > utils::convert (const std::array< OtherType, Size > source, const Types... data)
 
template<typename Type , typename OtherType , std::size_t Size, typename... Types, class = typename std::enable_if<sizeof...(Types) == Size>::type, class = void>
constexpr std::array< Type, Size > utils::convert (const std::array< OtherType, Size > source, const Types... data)
 

Function Documentation

◆ operator*() [1/2]

template<class T , std::size_t N>
std::array< T, N > operator* ( const float & l,
const std::array< T, N > & r )

Definition at line 34 of file running_avg.h.

◆ operator*() [2/2]

template<class T , std::size_t N>
std::array< T, N > operator* ( const std::array< T, N > & l,
const float & r )

Definition at line 27 of file running_avg.h.

◆ operator+()

template<class T , std::size_t N>
std::array< T, N > operator+ ( const std::array< T, N > & l,
const std::array< T, N > & r )

Definition at line 12 of file running_avg.h.

◆ operator-()

template<class T , std::size_t N>
std::array< T, N > operator- ( const std::array< T, N > & l,
const std::array< T, N > & r )

Definition at line 20 of file running_avg.h.