GNU Radio C++ API Reference: calc_metric.h Source File

| GNU Radio C++ API Reference 3.10.12.0 The Free & Open Software Radio Ecosystem |

Loading...
Searching...
No Matches
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
18namespace gr {
19namespace trellis {
20
21template <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 */
D
#define D(...)
Definition basic_block_pydoc_template.h:10
gr_complex.h
gr_complex
std::complex< float > gr_complex
Definition gr_complex.h:15
metric_type.h
gr::digital::trellis_metric_type_t
trellis_metric_type_t
Definition metric_type.h:17
gr::trellis
Definition base.h:17
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)
gr
GNU Radio logging wrapper.
Definition basic_block.h:29