PandA-2024.02
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <assert.h>
#include <math.h>
#include "viterbi.h"
Go to the source code of this file.
Functions | |
void | dump_transition (prob_t transition[N_STATES *N_STATES], int log) |
void | dump_emission (prob_t emission[N_STATES *N_TOKENS], int log) |
void | dump_init (prob_t init[N_STATES], int log) |
void | dump_path (state_t path[N_OBS]) |
void | dump_obs (tok_t obs[N_OBS]) |
int | main (int argc, char **argv) |
void dump_emission | ( | prob_t | emission[N_STATES *N_TOKENS], |
int | log | ||
) |
Definition at line 36 of file generate.c.
References N_STATES, N_TOKENS, and prng_rand_t::s.
Referenced by main().
void dump_init | ( | prob_t | init[N_STATES], |
int | log | ||
) |
Definition at line 55 of file generate.c.
References init(), N_STATES, and prng_rand_t::s.
Referenced by main().
void dump_obs | ( | tok_t | obs[N_OBS] | ) |
Definition at line 77 of file generate.c.
References N_OBS.
Referenced by main().
void dump_path | ( | state_t | path[N_OBS] | ) |
Definition at line 68 of file generate.c.
References N_OBS.
Referenced by main().
void dump_transition | ( | prob_t | transition[N_STATES *N_STATES], |
int | log | ||
) |
Definition at line 18 of file generate.c.
References N_STATES.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 86 of file generate.c.
References data_to_input(), dump_emission(), dump_init(), dump_obs(), dump_path(), dump_transition(), bench_args_t::emission, bench_args_t::init, min, N_OBS, N_STATES, N_TOKENS, bench_args_t::obs, P, prng_rand(), PRNG_RAND_MAX, prng_srand(), sum, and bench_args_t::transition.