#include <smoothing_channel_probe_processor.hpp>
Public Member Functions | |
SmoothingChannelProbeProcessor (UnitInterval alpha=UnitInterval(0.5)) | |
void | indicate (ChannelLoad cl) override |
ChannelLoad | channel_load () const |
Public Attributes | |
HookRegistry< ChannelLoad > | on_indication |
Private Attributes | |
UnitInterval | m_alpha |
ChannelLoad | m_channel_load |
Hook< ChannelLoad > | m_indication_hook |
Smooth local channel load measurements as per C2C-CC Whitepaper on DCC for Day One (Version 1.0 from 2013) and Basic System Profile (RS_BSP_240 in Version 1.3)
Definition at line 19 of file smoothing_channel_probe_processor.hpp.
vanetza::dcc::SmoothingChannelProbeProcessor::SmoothingChannelProbeProcessor | ( | UnitInterval | alpha = UnitInterval(0.5) | ) |
Initialize ChannelProbeProcessor with smoothing behaviour.
alpha | smoothing factor (influence of new raw measurement) |
Definition at line 8 of file smoothing_channel_probe_processor.cpp.
ChannelLoad vanetza::dcc::SmoothingChannelProbeProcessor::channel_load | ( | ) | const |
Get smoothed channel load value
Definition at line 19 of file smoothing_channel_probe_processor.cpp.
|
overridevirtual |
Feed new local channel load measurement into smoothing algorithm. Side effect: Update function is called afterwards with smoothed channel load.
cl | raw local channel load |
Reimplemented from vanetza::dcc::HookedChannelProbeProcessor.
Definition at line 13 of file smoothing_channel_probe_processor.cpp.
|
private |
Definition at line 41 of file smoothing_channel_probe_processor.hpp.
|
private |
Definition at line 42 of file smoothing_channel_probe_processor.hpp.
|
privateinherited |
Definition at line 24 of file hooked_channel_probe_processor.hpp.
|
inherited |
Definition at line 21 of file hooked_channel_probe_processor.hpp.