Loading...
Searching...
No Matches
probe_density_b.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2008,2012 Free Software Foundation, Inc.
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_GR_PROBE_DENSITY_B_H
#define INCLUDED_GR_PROBE_DENSITY_B_H
#include <gnuradio/digital/api.h>
#include <gnuradio/sync_block.h>
namespace gr {
namespace digital {
/*!
* \ingroup measurement_tools_blk
*
* This block maintains a running average of the input stream and
* makes it available as an accessor function. The input stream is
* type unsigned char.
*
* If you send this block a stream of unpacked bytes, it will tell
* you what the bit density is.
*/
class DIGITAL_API probe_density_b : virtual public sync_block
{
public:
// gr::digital::probe_density_b::sptr
typedef std::shared_ptr<probe_density_b> sptr;
/*!
* Make a density probe block.
*
* \param alpha Average filter constant
*
*/
static sptr make(double alpha);
/*!
* \brief Returns the current density value
*/
virtual double density() const = 0;
/*!
* \brief Set the average filter constant
*/
virtual void set_alpha(double alpha) = 0;
};
} /* namespace digital */
} /* namespace gr */
#endif /* INCLUDED_GR_PROBE_DENSITY_B_H */
gr::digital::probe_density_b
Definition probe_density_b.h:29
gr::digital::probe_density_b::make
static sptr make(double alpha)
gr::digital::probe_density_b::set_alpha
virtual void set_alpha(double alpha)=0
Set the average filter constant.
gr::digital::probe_density_b::sptr
std::shared_ptr< probe_density_b > sptr
Definition probe_density_b.h:32
gr::digital::probe_density_b::density
virtual double density() const =0
Returns the current density value.
gr::sync_block::sync_block
sync_block(void)
Definition sync_block.h:28
api.h
DIGITAL_API
#define DIGITAL_API
Definition gr-digital/include/gnuradio/digital/api.h:18
gr::digital
Definition adaptive_algorithm.h:22
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h