webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Attributes | List of all members
webrtc::test::CircularBuffer Class Reference

#include <utility.h>

Public Member Functions

 CircularBuffer (uint32_t len)
 
 ~CircularBuffer ()
 
void SetArithMean (bool enable)
 
void SetVariance (bool enable)
 
void Update (const double newVal)
 
void IsBufferFull ()
 
int16_t Variance (double &var)
 
int16_t ArithMean (double &mean)
 
 CircularBuffer (uint32_t len)
 
 ~CircularBuffer ()
 
void SetArithMean (bool enable)
 
void SetVariance (bool enable)
 
void Update (const double newVal)
 
void IsBufferFull ()
 
int16_t Variance (double &var)
 
int16_t ArithMean (double &mean)
 

Protected Attributes

double * _buff
 
uint32_t _idx
 
uint32_t _buffLen
 
bool _buffIsFull
 
bool _calcAvg
 
bool _calcVar
 
double _sum
 
double _sumSqr
 

Constructor & Destructor Documentation

◆ CircularBuffer() [1/2]

webrtc::test::CircularBuffer::CircularBuffer ( uint32_t  len)

◆ ~CircularBuffer() [1/2]

webrtc::test::CircularBuffer::~CircularBuffer ( )

◆ CircularBuffer() [2/2]

webrtc::test::CircularBuffer::CircularBuffer ( uint32_t  len)

◆ ~CircularBuffer() [2/2]

webrtc::test::CircularBuffer::~CircularBuffer ( )

Member Function Documentation

◆ ArithMean() [1/2]

int16_t webrtc::test::CircularBuffer::ArithMean ( double &  mean)

◆ ArithMean() [2/2]

int16_t webrtc::test::CircularBuffer::ArithMean ( double &  mean)

◆ IsBufferFull() [1/2]

void webrtc::test::CircularBuffer::IsBufferFull ( )

◆ IsBufferFull() [2/2]

void webrtc::test::CircularBuffer::IsBufferFull ( )

◆ SetArithMean() [1/2]

void webrtc::test::CircularBuffer::SetArithMean ( bool  enable)

◆ SetArithMean() [2/2]

void webrtc::test::CircularBuffer::SetArithMean ( bool  enable)

◆ SetVariance() [1/2]

void webrtc::test::CircularBuffer::SetVariance ( bool  enable)

◆ SetVariance() [2/2]

void webrtc::test::CircularBuffer::SetVariance ( bool  enable)

◆ Update() [1/2]

void webrtc::test::CircularBuffer::Update ( const double  newVal)

◆ Update() [2/2]

void webrtc::test::CircularBuffer::Update ( const double  newVal)

◆ Variance() [1/2]

int16_t webrtc::test::CircularBuffer::Variance ( double &  var)

◆ Variance() [2/2]

int16_t webrtc::test::CircularBuffer::Variance ( double &  var)

Member Data Documentation

◆ _buff

double * webrtc::test::CircularBuffer::_buff
protected

◆ _buffIsFull

bool webrtc::test::CircularBuffer::_buffIsFull
protected

◆ _buffLen

uint32_t webrtc::test::CircularBuffer::_buffLen
protected

◆ _calcAvg

bool webrtc::test::CircularBuffer::_calcAvg
protected

◆ _calcVar

bool webrtc::test::CircularBuffer::_calcVar
protected

◆ _idx

uint32_t webrtc::test::CircularBuffer::_idx
protected

◆ _sum

double webrtc::test::CircularBuffer::_sum
protected

◆ _sumSqr

double webrtc::test::CircularBuffer::_sumSqr
protected

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