#include <it/types.h>#include <it/vec.h>#include <it/convcode.h>#include <it/io.h>#include <it/hmmalgo.h>Go to the source code of this file.
Defines | |
| #define | bit(x, n) (((x) >> (n)) & 1) |
| #define | DECLARE_CONV_CODE(x, k, n) int it_cc_generators_##x[k*n] |
Functions | |
| DECLARE_CONV_CODE (conv_code_1, 1, 2) | |
| DECLARE_CONV_CODE (conv_code_2, 1, 2) | |
| DECLARE_CONV_CODE (conv_code_3, 1, 2) | |
| DECLARE_CONV_CODE (conv_code_4, 1, 2) | |
| DECLARE_CONV_CODE (conv_code_6, 1, 2) | |
| static int | fls (int c) |
| static int | encode_conv (it_convolutional_code_t *cc, int *state, int input, imat G, int Q, int k, int n) |
| static void | convolutional_code_destructor (it_object_t *it_this) |
| static bvec | convolutional_code_encode (it_convolutional_code_t *cc, bvec b) |
| static ivec | convolutional_code_encode_symbolic (it_convolutional_code_t *cc, ivec b) |
| it_instanciate (it_convolutional_code_t) | |
| ivec | it_viterbi_decode_symbolic (it_convolutional_code_t *cc, mat metrics) |
| bvec | it_viterbi_decode (it_convolutional_code_t *cc, mat metrics) |
| #define bit | ( | x, | |||
| n | ) | (((x) >> (n)) & 1) |
Definition at line 31 of file convcode.c.
| #define DECLARE_CONV_CODE | ( | x, | |||
| k, | |||||
| n | ) | int it_cc_generators_##x[k*n] |
Definition at line 33 of file convcode.c.
| static void convolutional_code_destructor | ( | it_object_t * | it_this | ) | [static] |
Definition at line 137 of file convcode.c.
References _convolutional_code_::automaton, _convolutional_code_::generators, imat_delete(), _convolutional_code_::input, IT_CONVOLUTIONAL_CODE, _convolutional_code_::it_overloaded(), _convolutional_code_::logalpha_0, _convolutional_code_::logbeta_end, mat_delete(), _convolutional_code_::next_state_logpt, _convolutional_code_::output, and vec_delete().
Referenced by it_instanciate().
| static bvec convolutional_code_encode | ( | it_convolutional_code_t * | cc, | |
| bvec | b | |||
| ) | [static] |
Definition at line 157 of file convcode.c.
References bit, bvec_length(), bvec_new(), it_cc_label, it_cc_next, _convolutional_code_::k, _convolutional_code_::n, and state.
Referenced by it_instanciate().
| static ivec convolutional_code_encode_symbolic | ( | it_convolutional_code_t * | cc, | |
| ivec | b | |||
| ) | [static] |
Definition at line 191 of file convcode.c.
References it_cc_label, it_cc_next, ivec_length(), ivec_new(), and state.
Referenced by it_instanciate().
| DECLARE_CONV_CODE | ( | conv_code_6 | , | |
| 1 | , | |||
| 2 | ||||
| ) |
| DECLARE_CONV_CODE | ( | conv_code_4 | , | |
| 1 | , | |||
| 2 | ||||
| ) |
| DECLARE_CONV_CODE | ( | conv_code_3 | , | |
| 1 | , | |||
| 2 | ||||
| ) |
| DECLARE_CONV_CODE | ( | conv_code_2 | , | |
| 1 | , | |||
| 2 | ||||
| ) |
| DECLARE_CONV_CODE | ( | conv_code_1 | , | |
| 1 | , | |||
| 2 | ||||
| ) |
| static int encode_conv | ( | it_convolutional_code_t * | cc, | |
| int * | state, | |||
| int | input, | |||
| imat | G, | |||
| int | Q, | |||
| int | k, | |||
| int | n | |||
| ) | [static] |
| static int fls | ( | int | c | ) | [static] |
|
|