GNU Radio's DAB Package
|
Detect the peak of a signal. More...
#include <peak_detector_fb.h>
Public Types | |
typedef boost::shared_ptr< peak_detector_fb > | sptr |
Public Member Functions | |
virtual void | set_threshold_factor_rise (float thr)=0 |
Set the threshold factor value for the rise time. More... | |
virtual void | set_threshold_factor_fall (float thr)=0 |
Set the threshold factor value for the fall time. More... | |
virtual void | set_look_ahead (int look)=0 |
Set the look-ahead factor. More... | |
virtual void | set_alpha (float alpha)=0 |
Set the running average alpha. More... | |
virtual float | threshold_factor_rise ()=0 |
Get the threshold factor value for the rise time. More... | |
virtual float | threshold_factor_fall ()=0 |
Get the threshold factor value for the fall time. More... | |
virtual int | look_ahead ()=0 |
Get the look-ahead factor value. More... | |
virtual float | alpha ()=0 |
Get the alpha value of the running average. More... | |
Static Public Member Functions | |
static sptr | make (float threshold_factor_rise=0.25, float threshold_factor_fall=0.40, int look_ahead=10, float alpha=0.001) |
Detect the peak of a signal.
If a peak is detected, this block outputs a 1, or it outputs 0's.
typedef boost::shared_ptr<peak_detector_fb> gr::dab::peak_detector_fb::sptr |
|
pure virtual |
Get the alpha value of the running average.
Implemented in gr::dab::peak_detector_fb_impl.
|
pure virtual |
Get the look-ahead factor value.
Implemented in gr::dab::peak_detector_fb_impl.
|
static |
Make a peak detector block.
threshold_factor_rise | The threshold factor determins when a peak has started. An average of the signal is calculated and when the value of the signal goes over threshold_factor_rise*average, we start looking for a peak. |
threshold_factor_fall | The threshold factor determins when a peak has ended. An average of the signal is calculated and when the value of the signal goes below threshold_factor_fall*average, we stop looking for a peak. |
look_ahead | The look-ahead value is used when the threshold is found to look if there another peak within this step range. If there is a larger value, we set that as the peak and look ahead again. This is continued until the highest point is found with This look-ahead range. |
alpha | The gain value of a moving average filter |
|
pure virtual |
Set the running average alpha.
alpha | new alpha for running average |
Implemented in gr::dab::peak_detector_fb_impl.
|
pure virtual |
Set the look-ahead factor.
look | new look-ahead factor |
Implemented in gr::dab::peak_detector_fb_impl.
|
pure virtual |
Set the threshold factor value for the fall time.
thr | new threshold factor |
Implemented in gr::dab::peak_detector_fb_impl.
|
pure virtual |
Set the threshold factor value for the rise time.
thr | new threshold factor |
Implemented in gr::dab::peak_detector_fb_impl.
|
pure virtual |
Get the threshold factor value for the fall time.
Implemented in gr::dab::peak_detector_fb_impl.
|
pure virtual |
Get the threshold factor value for the rise time.
Implemented in gr::dab::peak_detector_fb_impl.