gr-baz Package
baz_peak_detector Class Reference

square2 a stream of floats. More...

#include <baz_peak_detector.h>

Inheritance diagram for baz_peak_detector:

Public Member Functions

 ~baz_peak_detector ()
void set_threshold (float threshold)
void unset_threshold ()
float threshold () const
float threshold_set () const
void forecast (int noutput_items, gr_vector_int &ninput_items_required)
int general_work (int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)

Friends

BAZ_API baz_peak_detector_sptr baz_make_peak_detector (float min_diff=0.0, int min_len=1, int lockout=0, float drop=0.0, float alpha=1.0, int look_ahead=0, bool byte_output=false, bool verbose=false)
 Return a shared_ptr to a new instance of baz_peak_detector.

Detailed Description

square2 a stream of floats.

This uses the preferred technique: subclassing gr::sync_block.

Constructor & Destructor Documentation

◆ ~baz_peak_detector()

baz_peak_detector::~baz_peak_detector ( )

Member Function Documentation

◆ forecast()

void baz_peak_detector::forecast ( int noutput_items,
gr_vector_int & ninput_items_required )

◆ general_work()

int baz_peak_detector::general_work ( int noutput_items,
gr_vector_int & ninput_items,
gr_vector_const_void_star & input_items,
gr_vector_void_star & output_items )

◆ set_threshold()

void baz_peak_detector::set_threshold ( float threshold)

References threshold().

◆ threshold()

float baz_peak_detector::threshold ( ) const
inline

Referenced by set_threshold().

◆ threshold_set()

float baz_peak_detector::threshold_set ( ) const
inline

◆ unset_threshold()

void baz_peak_detector::unset_threshold ( )

◆ baz_make_peak_detector

BAZ_API baz_peak_detector_sptr baz_make_peak_detector ( float min_diff = 0.0,
int min_len = 1,
int lockout = 0,
float drop = 0.0,
float alpha = 1.0,
int look_ahead = 0,
bool byte_output = false,
bool verbose = false )
friend

Return a shared_ptr to a new instance of baz_peak_detector.

To avoid accidental use of raw pointers, baz_peak_detector's constructor is private. howto_make_square2_ff is the public interface for creating new instances.

References BAZ_API.


The documentation for this class was generated from the following file: