GNU Radio Manual and C++ API Reference
3.9.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
* SPDX-License-Identifier: GPL-3.0-or-later
8
*
9
*/
10
11
#ifndef INCLUDED_CALC_METRIC_H
12
#define INCLUDED_CALC_METRIC_H
13
14
#include <
gnuradio/digital/metric_type.h
>
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,
27
digital::trellis_metric_type_t
type);
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,
45
digital::trellis_metric_type_t
type);
46
47
}
/* namespace trellis */
48
}
/* namespace gr */
49
50
#endif
/* INCLUDED_CALC_METRIC_H */
gr::digital::trellis_metric_type_t
trellis_metric_type_t
Definition:
metric_type.h:17
D
#define D(...)
Definition:
basic_block_pydoc_template.h:10
gr_complex
std::complex< float > gr_complex
Definition:
gr_complex.h:15
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:29
gr_complex.h
gr-trellis
include
gnuradio
trellis
calc_metric.h
Generated by
1.8.17