src/convcode.c File Reference

#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 Documentation

#define bit ( x,
 )     (((x) >> (n)) & 1)

Definition at line 31 of file convcode.c.

#define DECLARE_CONV_CODE ( x,
k,
 )     int it_cc_generators_##x[k*n]

Definition at line 33 of file convcode.c.


Function Documentation

static bvec convolutional_code_encode ( it_convolutional_code_t cc,
bvec  b 
) [static]

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  ,
,
 
)

DECLARE_CONV_CODE ( conv_code_4  ,
,
 
)

DECLARE_CONV_CODE ( conv_code_3  ,
,
 
)

DECLARE_CONV_CODE ( conv_code_2  ,
,
 
)

DECLARE_CONV_CODE ( conv_code_1  ,
,
 
)

static int encode_conv ( it_convolutional_code_t cc,
int *  state,
int  input,
imat  G,
int  Q,
int  k,
int  n 
) [static]

Definition at line 209 of file convcode.c.

References bit, and fls().

Referenced by it_instanciate().

static int fls ( int  c  )  [static]

Definition at line 259 of file convcode.c.

Referenced by encode_conv(), and it_instanciate().


Hosted by
Copyright (C) 2005-2006 Hervé Jégou
Vivien Chappelier
Francois Cayre
libit logo courtesy of Jonathan Delhumeau