CatapultServer  v0.5.0.1 (Elephant)
filter_constants.h
Go to the documentation of this file.
1 
21 #pragma once
23 #include <cstdint>
24 
25 namespace catapult { namespace timesync { namespace filters {
26 
29 
32 
34  constexpr int64_t Start_Decay_After_Round = 5;
35 
37  constexpr double Decay_Strength = 0.3;
38 
40  constexpr double Alpha = 0.4;
41 
43  constexpr int64_t Tolerated_Duration_Maximum = 1000;
44 }}}
catapult::timesync::filters::Tolerated_Duration_Maximum
constexpr int64_t Tolerated_Duration_Maximum
Maximum time in ms that a response to a time sync request may take.
Definition: filter_constants.h:43
catapult::timesync::filters::Alpha
constexpr double Alpha
Value that indicates the percentage of the samples is discarded.
Definition: filter_constants.h:40
catapult::timesync::filters::Decay_Strength
constexpr double Decay_Strength
Value that indicates the speed of the decay.
Definition: filter_constants.h:37
catapult::utils::TimeSpan::FromMinutes
static constexpr TimeSpan FromMinutes(uint64_t minutes)
Creates a time span from the given number of minutes.
Definition: TimeSpan.h:49
TimeSpan.h
catapult::timesync::filters::Start_Decay_After_Round
constexpr int64_t Start_Decay_After_Round
Value that indicates after which round the decay starts.
Definition: filter_constants.h:34
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::timesync::filters::Tolerated_Deviation_Start
constexpr auto Tolerated_Deviation_Start
Start value for the maximum tolerated deviation in ms.
Definition: filter_constants.h:28
catapult::timesync::filters::Tolerated_Deviation_Minimum
constexpr auto Tolerated_Deviation_Minimum
Minimum value for the maximum tolerated deviation in ms.
Definition: filter_constants.h:31