DP-HLS
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
solution_viterbi.h File Reference
#include <map>
#include <iostream>
#include <array>
#include <string>
#include <limits>
#include <fstream>
#include <iomanip>
#include <complex>
#include <set>
#include "host_utils.h"
#include <cassert>

Go to the source code of this file.

Functions

template<typename PENALTY_T , int SOL_MAX_QUERY_LENGTH, int SOL_MAX_REFERENCE_LENGTH, int SOL_N_LAYERS>
void viterbi_solution (std::string query, std::string reference, PENALTY_T &penalties, array< array< array< double, SOL_MAX_REFERENCE_LENGTH >, SOL_MAX_QUERY_LENGTH >, SOL_N_LAYERS > &score_mat, array< array< string, SOL_MAX_REFERENCE_LENGTH >, SOL_MAX_QUERY_LENGTH > &tb_mat, map< string, string > &alignments)
 Viterbi itself is a global alignment, don't need to consider the case of making it local. More...
 

Function Documentation

template<typename PENALTY_T , int SOL_MAX_QUERY_LENGTH, int SOL_MAX_REFERENCE_LENGTH, int SOL_N_LAYERS>
void viterbi_solution ( std::string  query,
std::string  reference,
PENALTY_T &  penalties,
array< array< array< double, SOL_MAX_REFERENCE_LENGTH >, SOL_MAX_QUERY_LENGTH >, SOL_N_LAYERS > &  score_mat,
array< array< string, SOL_MAX_REFERENCE_LENGTH >, SOL_MAX_QUERY_LENGTH > &  tb_mat,
map< string, string > &  alignments 
)

Viterbi itself is a global alignment, don't need to consider the case of making it local.

Template Parameters
PENALTY_T
SOL_MAX_QUERY_LENGTH
SOL_MAX_REFERENCE_LENGTH
SOL_N_LAYERS
Parameters
query
reference
penalties
score_mat
tb_mat
alignments