Detect the peak of a signalIf a peak is detected, this block outputs a 1, or it outputs 0's. A separate debug output may be connected, to view the internal EWMA described below.
More...
#include <gr_peak_detector2_fb.h>
List of all members.
Detailed Description
Detect the peak of a signal
If a peak is detected, this block outputs a 1, or it outputs 0's. A separate debug output may be connected, to view the internal EWMA described below.
- Parameters:
-
threshold_factor_rise | The threshold factor determins when a peak is present. An EWMA average of the signal is calculated and when the value of the signal goes over threshold_factor_rise*average, we call the peak. |
look_ahead | The look-ahead value is used when the threshold is found to locate the peak within this range. |
alpha | The gain value of a single-pole moving average filter |
Member Function Documentation
float gr_peak_detector2_fb::alpha |
( |
| ) |
[inline] |
Get the alpha value of the running average.
- Returns:
- alpha
Referenced by set_alpha().
int gr_peak_detector2_fb::look_ahead |
( |
| ) |
[inline] |
Get the look-ahead factor value.
- Returns:
- look-ahead factor
void gr_peak_detector2_fb::set_alpha |
( |
int |
alpha | ) |
[inline] |
Set the running average alpha.
- Parameters:
-
alpha | new alpha for running average |
References alpha().
void gr_peak_detector2_fb::set_look_ahead |
( |
int |
look | ) |
[inline] |
Set the look-ahead factor.
- Parameters:
-
look | new look-ahead factor |
void gr_peak_detector2_fb::set_threshold_factor_rise |
( |
float |
thr | ) |
[inline] |
Set the threshold factor value for the rise time.
- Parameters:
-
float gr_peak_detector2_fb::threshold_factor_rise |
( |
| ) |
[inline] |
Get the threshold factor value for the rise time.
- Returns:
- threshold factor
Friends And Related Function Documentation
The documentation for this class was generated from the following file: