GNU Radio Manual and C++ API Reference
3.9.1.0
The Free & Open Software Radio Ecosystem
min_blk.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2014,2015,2018 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
12
#ifndef MIN_BLK_H
13
#define MIN_BLK_H
14
15
#include <
gnuradio/blocks/api.h
>
16
#include <
gnuradio/sync_block.h
>
17
#include <cstdint>
18
19
namespace
gr
{
20
namespace
blocks {
21
22
/*!
23
* \brief Compares vectors from multiple streams and determines
24
* the minimum value from each vector over all streams.
25
* \ingroup math_operators_blk
26
*
27
* \details
28
* Data is passed in as a vector of length \p vlen from multiple
29
* input sources. If vlen_out == 1 then
30
* It will look through these streams of \p vlen
31
* data items and the output stream will contain the minimum value
32
* in the vector.
33
* If vlen_out == vlen and not equal to 1 then
34
* output will be a vector with individual items selected from
35
* the minimum corresponding input vector items.
36
*/
37
template
<
class
T>
38
class
BLOCKS_API
min_blk
:
virtual
public
sync_block
39
{
40
public
:
41
typedef
std::shared_ptr<min_blk<T>>
sptr
;
42
43
static
sptr
make(
size_t
vlen,
size_t
vlen_out = 1);
44
};
45
46
typedef
min_blk<std::int16_t>
min_ss
;
47
typedef
min_blk<std::int32_t>
min_ii
;
48
typedef
min_blk<float>
min_ff
;
49
}
/* namespace blocks */
50
}
/* namespace gr */
51
52
#endif
/* MIN_BLK_H */
gr::blocks::min_blk::sptr
std::shared_ptr< min_blk< T > > sptr
Definition:
min_blk.h:41
api.h
BLOCKS_API
#define BLOCKS_API
Definition:
gr-blocks/include/gnuradio/blocks/api.h:18
gr::blocks::min_blk
Compares vectors from multiple streams and determines the minimum value from each vector over all str...
Definition:
min_blk.h:38
gr::sync_block
synchronous 1:1 input to output with history
Definition:
sync_block.h:25
gr::blocks::min_ii
min_blk< std::int32_t > min_ii
Definition:
min_blk.h:47
sync_block.h
gr::blocks::min_ff
min_blk< float > min_ff
Definition:
min_blk.h:48
gr::blocks::min_ss
min_blk< std::int16_t > min_ss
Definition:
min_blk.h:46
gr
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition:
basic_block.h:29
gr-blocks
include
gnuradio
blocks
min_blk.h
Generated by
1.8.17