GNU Radio Manual and C++ API Reference
3.8.1.0
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
* 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 <
gnuradio/digital/metric_type.h
>
27
#include <
gnuradio/gr_complex.h
>
28
#include <vector>
29
30
namespace
gr
{
31
namespace
trellis {
32
33
template
<
class
T>
34
void
calc_metric
(
int
O,
35
int
D,
36
const
std::vector<T>& TABLE,
37
const
T* input,
38
float
* metric,
39
digital::trellis_metric_type_t
type);
40
41
/*
42
void calc_metric(int O, int D, const std::vector<short> &TABLE, const short *input,
43
float *metric, digital::trellis_metric_type_t type);
44
45
void calc_metric(int O, int D, const std::vector<int> &TABLE, const int *input,
46
float *metric, digital::trellis_metric_type_t type);
47
48
void calc_metric(int O, int D, const std::vector<float> &TABLE, const float *input,
49
float *metric, digital::trellis_metric_type_t type);
50
*/
51
52
void
calc_metric
(
int
O,
53
int
D,
54
const
std::vector<gr_complex>& TABLE,
55
const
gr_complex
* input,
56
float
* metric,
57
digital::trellis_metric_type_t
type);
58
59
}
/* namespace trellis */
60
}
/* namespace gr */
61
62
#endif
/* INCLUDED_CALC_METRIC_H */
gr::digital::trellis_metric_type_t
trellis_metric_type_t
Definition:
metric_type.h:29
gr_complex
std::complex< float > gr_complex
Definition:
gr_complex.h:27
gr::trellis::calc_metric
void calc_metric(int O, int D, const std::vector< T > &TABLE, const T *input, float *metric, digital::trellis_metric_type_t type)
metric_type.h
gr
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition:
basic_block.h:43
gr_complex.h
gr-trellis
include
gnuradio
trellis
calc_metric.h
Generated by
1.8.16