GNU Radio Manual and C++ API Reference  3.7.9.2
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef INCLUDED_CALC_METRIC_H
24 #define INCLUDED_CALC_METRIC_H
25 
26 #include <vector>
27 #include <gnuradio/gr_complex.h>
29 
30 namespace gr {
31  namespace trellis {
32 
33  template <class T>
34  void calc_metric(int O, int D, const std::vector<T> &TABLE, const T *input,
35  float *metric, digital::trellis_metric_type_t type);
36 
37  /*
38  void calc_metric(int O, int D, const std::vector<short> &TABLE, const short *input,
39  float *metric, digital::trellis_metric_type_t type);
40 
41  void calc_metric(int O, int D, const std::vector<int> &TABLE, const int *input,
42  float *metric, digital::trellis_metric_type_t type);
43 
44  void calc_metric(int O, int D, const std::vector<float> &TABLE, const float *input,
45  float *metric, digital::trellis_metric_type_t type);
46  */
47 
48  void calc_metric(int O, int D, const std::vector<gr_complex> &TABLE, const gr_complex *input,
49  float *metric, digital::trellis_metric_type_t type);
50 
51  } /* namespace trellis */
52 } /* namespace gr */
53 
54 #endif /* INCLUDED_CALC_METRIC_H */
trellis_metric_type_t
Definition: metric_type.h:29
std::complex< float > gr_complex
Definition: gr_complex.h:27
void calc_metric(int O, int D, const std::vector< T > &TABLE, const T *input, float *metric, digital::trellis_metric_type_t type)
Include this header to use the message passing features.
Definition: logger.h:131