22 #ifndef INCLUDED_GR_PROBE_AVG_MAG_SQRD_C_H
23 #define INCLUDED_GR_PROBE_AVG_MAG_SQRD_C_H
60 int work (
int noutput_items,
61 gr_vector_const_void_star &input_items,
62 gr_vector_void_star &output_items);
65 bool unmuted ()
const {
return d_unmuted; }
66 double level ()
const {
return d_level; }
68 double threshold()
const;
71 void set_alpha (
double alpha);
72 void set_threshold (
double decibels);
compute avg magnitude squared.input: gr_complex
Definition: gr_probe_avg_mag_sqrd_c.h:45
Definition: gr_sync_block.h:27
shared_ptr documentation stub
Definition: shared_ptr_docstub.h:15
#define GR_CORE_API
Definition: gr_core_api.h:30
double level() const
Definition: gr_probe_avg_mag_sqrd_c.h:66
bool unmuted() const
Definition: gr_probe_avg_mag_sqrd_c.h:65
GR_CORE_API gr_probe_avg_mag_sqrd_c_sptr gr_make_probe_avg_mag_sqrd_c(double threshold_db, double alpha=0.0001)
virtual int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
just like gr_block::general_work, only this arranges to call consume_each for you ...