Bitcoin ABC 0.30.7
P2P Digital Currency
Variables
statistics.h File Reference
#include <chrono>
Include dependency graph for statistics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

static constexpr std::chrono::minutes AVALANCHE_STATISTICS_REFRESH_PERIOD {10}
 Refresh period for the avalanche statistics computation. More...
 
static constexpr std::chrono::minutes AVALANCHE_STATISTICS_TIME_CONSTANT {10}
 Time constant for the avalanche statistics computation. More...
 
static const double AVALANCHE_STATISTICS_DECAY_FACTOR
 Pre-computed decay factor for the avalanche statistics computation. More...
 

Variable Documentation

◆ AVALANCHE_STATISTICS_DECAY_FACTOR

const double AVALANCHE_STATISTICS_DECAY_FACTOR
static
Initial value:
=
1. - std::exp(-1. * AVALANCHE_STATISTICS_REFRESH_PERIOD.count() /
static constexpr std::chrono::minutes AVALANCHE_STATISTICS_TIME_CONSTANT
Time constant for the avalanche statistics computation.
Definition: statistics.h:13
static constexpr std::chrono::minutes AVALANCHE_STATISTICS_REFRESH_PERIOD
Refresh period for the avalanche statistics computation.
Definition: statistics.h:11

Pre-computed decay factor for the avalanche statistics computation.

There is currently no constexpr variant of std::exp, so use a const.

Definition at line 18 of file statistics.h.

◆ AVALANCHE_STATISTICS_REFRESH_PERIOD

constexpr std::chrono::minutes AVALANCHE_STATISTICS_REFRESH_PERIOD {10}
staticconstexpr

Refresh period for the avalanche statistics computation.

Definition at line 11 of file statistics.h.

◆ AVALANCHE_STATISTICS_TIME_CONSTANT

constexpr std::chrono::minutes AVALANCHE_STATISTICS_TIME_CONSTANT {10}
staticconstexpr

Time constant for the avalanche statistics computation.

Definition at line 13 of file statistics.h.