GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
stretch_ff.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2008,2013 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef INCLUDED_GR_STRETCH_FF_H
12 #define INCLUDED_GR_STRETCH_FF_H
13 
14 #include <gnuradio/blocks/api.h>
15 #include <gnuradio/sync_block.h>
16 
17 namespace gr {
18 namespace blocks {
19 
20 /*!
21  * \brief adjust y-range of an input vector by mapping to range
22  * (max-of-input, stipulated-min). Primarily for spectral
23  * signature matching by normalizing spectrum dynamic ranges.
24  * \ingroup stream_operators_blk
25  */
26 class BLOCKS_API stretch_ff : virtual public sync_block
27 {
28 public:
29  // gr::blocks::stretch_ff::sptr
30  typedef std::shared_ptr<stretch_ff> sptr;
31 
32  /*!
33  * \brief Make a stretch block.
34  *
35  * \param lo Set low value for range.
36  * \param vlen vector length of input stream.
37  */
38  static sptr make(float lo, size_t vlen = 1);
39 
40  virtual float lo() const = 0;
41  virtual void set_lo(float lo) = 0;
42  virtual size_t vlen() const = 0;
43 };
44 
45 } /* namespace blocks */
46 } /* namespace gr */
47 
48 #endif /* INCLUDED_GR_STRETCH_FF_H */
adjust y-range of an input vector by mapping to range (max-of-input, stipulated-min)....
Definition: stretch_ff.h:27
virtual void set_lo(float lo)=0
std::shared_ptr< stretch_ff > sptr
Definition: stretch_ff.h:30
virtual size_t vlen() const =0
virtual float lo() const =0
static sptr make(float lo, size_t vlen=1)
Make a stretch block.
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29