AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
painlessmesh::plugin::performance::Stats Class Reference

#include <performance.hpp>

Public Member Functions

void update (double v, double alpha=0.1)
 
TSTRING toString () const
 

Protected Attributes

double mu = 0
 
double var = 0
 
bool init = false
 

Detailed Description

Track mean and variance of the given value

Older values are discounted, so that you keep a rolling average

Member Function Documentation

◆ toString()

TSTRING painlessmesh::plugin::performance::Stats::toString ( ) const
inline

◆ update()

void painlessmesh::plugin::performance::Stats::update ( double  v,
double  alpha = 0.1 
)
inline

Member Data Documentation

◆ init

bool painlessmesh::plugin::performance::Stats::init = false
protected

◆ mu

double painlessmesh::plugin::performance::Stats::mu = 0
protected

◆ var

double painlessmesh::plugin::performance::Stats::var = 0
protected

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