RSeries astromech firmware
MedianSampleBuffer< T, size > Class Template Reference

#include <core/MedianSampleBuffer.h>

Detailed Description

template<typename T, uint8_t size>
class MedianSampleBuffer< T, size >

The median of N numerical values by:

The median of a list of N values is found by sorting the input array in increasing order, and taking the middle value. The median of a list of N values has the property that in the list there are as many greater as smaller values than this element.

Where N is 3, 5, 6, 7, 9, or 25

Public Member Functions

void append (T val)
 
median ()
 

Member Function Documentation

◆ append()

template<typename T , uint8_t size>
void MedianSampleBuffer< T, size >::append ( val)
inline

◆ median()

template<typename T , uint8_t size>
T MedianSampleBuffer< T, size >::median ( )
inline

The documentation for this class was generated from the following file: