Loading...
Searching...
No Matches
rms_ff.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2005,2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_BLOCKS_RMS_FF_H
#define INCLUDED_BLOCKS_RMS_FF_H
#include <gnuradio/blocks/api.h>
#include <gnuradio/sync_block.h>
namespace gr {
namespace blocks {
/*!
* \brief RMS average power
* \ingroup math_operators_blk
*/
class BLOCKS_API rms_ff : virtual public sync_block
{
public:
// gr::blocks::rms_ff::sptr
typedef std::shared_ptr<rms_ff> sptr;
/*!
* \brief Make an RMS calc. block.
* \param alpha gain for running average filter.
*/
static sptr make(double alpha = 0.0001);
virtual void set_alpha(double alpha) = 0;
};
} /* namespace blocks */
} /* namespace gr */
#endif /* INCLUDED_BLOCKS_RMS_FF_H */
gr::blocks::rms_ff
RMS average power.
Definition rms_ff.h:25
gr::blocks::rms_ff::set_alpha
virtual void set_alpha(double alpha)=0
gr::blocks::rms_ff::sptr
std::shared_ptr< rms_ff > sptr
Definition rms_ff.h:28
gr::blocks::rms_ff::make
static sptr make(double alpha=0.0001)
Make an RMS calc. block.
gr::sync_block
synchronous 1:1 input to output with history
Definition sync_block.h:26
api.h
BLOCKS_API
#define BLOCKS_API
Definition gr-blocks/include/gnuradio/blocks/api.h:18
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h