Loading...
Searching...
No Matches
core_algorithms.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2004,2012 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_CORE_ALGORITHMS_H
#define INCLUDED_CORE_ALGORITHMS_H
#include <gnuradio/digital/metric_type.h>
#include <gnuradio/trellis/fsm.h>
#include <gnuradio/trellis/interleaver.h>
#include <cmath>
#include <vector>
namespace gr {
namespace trellis {
float min(float a, float b);
float min_star(float a, float b);
template <class T>
void viterbi_algorithm(int I,
int S,
int O,
const std::vector<int>& NS,
const std::vector<int>& OS,
const std::vector<std::vector<int>>& PS,
const std::vector<std::vector<int>>& PI,
int K,
int S0,
int SK,
const float* in,
T* out);
template <class Ti, class To>
void viterbi_algorithm_combined(int I,
int S,
int O,
const std::vector<int>& NS,
const std::vector<int>& OS,
const std::vector<std::vector<int>>& PS,
const std::vector<std::vector<int>>& PI,
int K,
int S0,
int SK,
int D,
const std::vector<Ti>& TABLE,
digital::trellis_metric_type_t TYPE,
const Ti* in,
To* out);
void siso_algorithm(int I,
int S,
int O,
const std::vector<int>& NS,
const std::vector<int>& OS,
const std::vector<std::vector<int>>& PS,
const std::vector<std::vector<int>>& PI,
int K,
int S0,
int SK,
bool POSTI,
bool POSTO,
float (*p2mymin)(float, float),
const float* priori,
const float* prioro,
float* post);
template <class T>
void siso_algorithm_combined(int I,
int S,
int O,
const std::vector<int>& NS,
const std::vector<int>& OS,
const std::vector<std::vector<int>>& PS,
const std::vector<std::vector<int>>& PI,
int K,
int S0,
int SK,
bool POSTI,
bool POSTO,
float (*p2mymin)(float, float),
int D,
const std::vector<T>& TABLE,
digital::trellis_metric_type_t TYPE,
const float* priori,
const T* observations,
float* post);
template <class T>
void sccc_decoder(const fsm& FSMo,
int STo0,
int SToK,
const fsm& FSMi,
int STi0,
int STiK,
const interleaver& INTERLEAVER,
int blocklength,
int iterations,
float (*p2mymin)(float, float),
const float* iprioro,
T* data);
template <class Ti, class To>
void sccc_decoder_combined(const fsm& FSMo,
int STo0,
int SToK,
const fsm& FSMi,
int STi0,
int STiK,
const interleaver& INTERLEAVER,
int blocklength,
int iterations,
float (*p2mymin)(float, float),
int D,
const std::vector<Ti>& TABLE,
digital::trellis_metric_type_t METRIC_TYPE,
float scaling,
const Ti* observations,
To* data);
template <class T>
void pccc_decoder(const fsm& FSM1,
int ST10,
int ST1K,
const fsm& FSM2,
int ST20,
int ST2K,
const interleaver& INTERLEAVER,
int blocklength,
int iterations,
float (*p2mymin)(float, float),
const float* cprioro,
T* data);
template <class Ti, class To>
void pccc_decoder_combined(const fsm& FSM1,
int ST10,
int ST1K,
const fsm& FSM2,
int ST20,
int ST2K,
const interleaver& INTERLEAVER,
int blocklength,
int iterations,
float (*p2mymin)(float, float),
int D,
const std::vector<Ti>& TABLE,
digital::trellis_metric_type_t METRIC_TYPE,
float scaling,
const Ti* observations,
To* data);
} /* namespace trellis */
} /* namespace gr */
#endif /* INCLUDED_CORE_ALGORITHMS_H */
D
#define D(...)
Definition basic_block_pydoc_template.h:10
gr::trellis::fsm
Finite State Machine Specification class.
Definition fsm.h:33
gr::trellis::interleaver
INTERLEAVER class.
Definition interleaver.h:27
fsm.h
interleaver.h
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::siso_algorithm
void siso_algorithm(int I, int S, int O, const std::vector< int > &NS, const std::vector< int > &OS, const std::vector< std::vector< int > > &PS, const std::vector< std::vector< int > > &PI, int K, int S0, int SK, bool POSTI, bool POSTO, float(*p2mymin)(float, float), const float *priori, const float *prioro, float *post)
gr::trellis::sccc_decoder_combined
void sccc_decoder_combined(const fsm &FSMo, int STo0, int SToK, const fsm &FSMi, int STi0, int STiK, const interleaver &INTERLEAVER, int blocklength, int iterations, float(*p2mymin)(float, float), int D, const std::vector< Ti > &TABLE, digital::trellis_metric_type_t METRIC_TYPE, float scaling, const Ti *observations, To *data)
gr::trellis::min_star
float min_star(float a, float b)
gr::trellis::pccc_decoder
void pccc_decoder(const fsm &FSM1, int ST10, int ST1K, const fsm &FSM2, int ST20, int ST2K, const interleaver &INTERLEAVER, int blocklength, int iterations, float(*p2mymin)(float, float), const float *cprioro, T *data)
gr::trellis::siso_algorithm_combined
void siso_algorithm_combined(int I, int S, int O, const std::vector< int > &NS, const std::vector< int > &OS, const std::vector< std::vector< int > > &PS, const std::vector< std::vector< int > > &PI, int K, int S0, int SK, bool POSTI, bool POSTO, float(*p2mymin)(float, float), int D, const std::vector< T > &TABLE, digital::trellis_metric_type_t TYPE, const float *priori, const T *observations, float *post)
gr::trellis::pccc_decoder_combined
void pccc_decoder_combined(const fsm &FSM1, int ST10, int ST1K, const fsm &FSM2, int ST20, int ST2K, const interleaver &INTERLEAVER, int blocklength, int iterations, float(*p2mymin)(float, float), int D, const std::vector< Ti > &TABLE, digital::trellis_metric_type_t METRIC_TYPE, float scaling, const Ti *observations, To *data)
gr::trellis::viterbi_algorithm
void viterbi_algorithm(int I, int S, int O, const std::vector< int > &NS, const std::vector< int > &OS, const std::vector< std::vector< int > > &PS, const std::vector< std::vector< int > > &PI, int K, int S0, int SK, const float *in, T *out)
gr::trellis::min
float min(float a, float b)
gr::trellis::viterbi_algorithm_combined
void viterbi_algorithm_combined(int I, int S, int O, const std::vector< int > &NS, const std::vector< int > &OS, const std::vector< std::vector< int > > &PS, const std::vector< std::vector< int > > &PI, int K, int S0, int SK, int D, const std::vector< Ti > &TABLE, digital::trellis_metric_type_t TYPE, const Ti *in, To *out)
gr::trellis::sccc_decoder
void sccc_decoder(const fsm &FSMo, int STo0, int SToK, const fsm &FSMi, int STi0, int STiK, const interleaver &INTERLEAVER, int blocklength, int iterations, float(*p2mymin)(float, float), const float *iprioro, T *data)
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
S
#define S(x)
Definition rpcserver_thrift.h:24