GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
calc_metric.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2004,2012 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_CALC_METRIC_H
12 #define INCLUDED_CALC_METRIC_H
13 
15 #include <gnuradio/gr_complex.h>
16 #include <vector>
17 
18 namespace gr {
19 namespace trellis {
20 
21 template <class T>
22 void calc_metric(int O,
23  int D,
24  const std::vector<T>& TABLE,
25  const T* input,
26  float* metric,
28 
29 /*
30  void calc_metric(int O, int D, const std::vector<short> &TABLE, const short *input,
31  float *metric, digital::trellis_metric_type_t type);
32 
33  void calc_metric(int O, int D, const std::vector<int> &TABLE, const int *input,
34  float *metric, digital::trellis_metric_type_t type);
35 
36  void calc_metric(int O, int D, const std::vector<float> &TABLE, const float *input,
37  float *metric, digital::trellis_metric_type_t type);
38 */
39 
40 void calc_metric(int O,
41  int D,
42  const std::vector<gr_complex>& TABLE,
43  const gr_complex* input,
44  float* metric,
46 
47 } /* namespace trellis */
48 } /* namespace gr */
49 
50 #endif /* INCLUDED_CALC_METRIC_H */
#define D(...)
Definition: basic_block_pydoc_template.h:10
std::complex< float > gr_complex
Definition: gr_complex.h:15
trellis_metric_type_t
Definition: metric_type.h:17
void calc_metric(int O, int D, const std::vector< T > &TABLE, const T *input, float *metric, digital::trellis_metric_type_t type)
GNU Radio logging wrapper.
Definition: basic_block.h:29