PandA-2024.02
Data Structures | Macros | Typedefs | Functions
viterbi.h File Reference
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <fcntl.h>
#include "support.h"
Include dependency graph for viterbi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bench_args_t
 

Macros

#define TYPE   double
 
#define N_STATES   64
 
#define N_OBS   140
 
#define N_TOKENS   64
 

Typedefs

typedef uint8_t tok_t
 
typedef TYPE prob_t
 
typedef uint8_t state_t
 
typedef int32_t step_t
 

Functions

int viterbi (tok_t obs[N_OBS], prob_t init[N_STATES], prob_t transition[N_STATES *N_STATES], prob_t emission[N_STATES *N_TOKENS], state_t path[N_OBS])
 

Macro Definition Documentation

◆ N_OBS

#define N_OBS   140

◆ N_STATES

#define N_STATES   64

◆ N_TOKENS

#define N_TOKENS   64

Definition at line 23 of file viterbi.h.

Referenced by data_to_input(), dump_emission(), input_to_data(), and main().

◆ TYPE

#define TYPE   double

Definition at line 12 of file viterbi.h.

Typedef Documentation

◆ prob_t

typedef TYPE prob_t

Definition at line 14 of file viterbi.h.

◆ state_t

typedef uint8_t state_t

Definition at line 15 of file viterbi.h.

◆ step_t

typedef int32_t step_t

Definition at line 16 of file viterbi.h.

◆ tok_t

typedef uint8_t tok_t

Definition at line 13 of file viterbi.h.

Function Documentation

◆ viterbi()

int viterbi ( tok_t  obs[N_OBS],
prob_t  init[N_STATES],
prob_t  transition[N_STATES *N_STATES],
prob_t  emission[N_STATES *N_TOKENS],
state_t  path[N_OBS] 
)

Definition at line 3 of file viterbi.c.

References init(), N_OBS, and N_STATES.

Referenced by run_benchmark().

Here is the call graph for this function:
Here is the caller graph for this function:

Generated on Mon Feb 12 2024 13:03:11 for PandA-2024.02 by doxygen 1.8.13