Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Anonymous
Anonymous asked in 電腦與網際網路軟體 · 1 decade ago

請教用c語言如何寫迴旋編碼,再用viterbi解碼

想請教各位前輩...

我正在用c寫一個程式...

主要是用c寫迴旋編碼...再用viterbi解碼...

只要用硬性判定即可...

自己想了超久,還是想不出來

不知道有哪個大大會的?幫幫忙

如果可以的話也可以寄到viosddg@yahoo.com.tw

感激不盡...~~~

1 Answer

Rating
  • cocobi
    Lv 4
    1 decade ago
    Favorite Answer

    /********************************************************************* * * File: viterbi.c *  * Description:  *  * Author:  *  Eric H. Thayer *********************************************************************/#include "viterbi.h"#include "accum.h"#include <s3/ckd_alloc.h>#include <s3/profile.h>#include <s3/remap.h>#include <s3/err.h>#include <math.h>#include <assert.h>int32viterbi_update(float64 *out_log_prob,        vector_t **f,        uint32 *s_seq,        uint32 *t_seq,        uint32 *ms_seq,        uint32 n_obs,        model_inventory_t *inv,        int32 mixw_reest,        int32 tmat_reest,        int32 mean_reest,        int32 var_reest,        int32 pass2var){    int ret = S3_SUCCESS;    uint32 i, j, k, l, kk, last_ms;    uint32 t;    float64 **den;    uint32 **den_idx;    float64 out_lik;    float64 cond_prob;    float64 total_log_olik = 0;    float64 xxx;    float64 diff;    model_def_t *mdef;    float32 ***mixw;    float32 ***l_tmat_acc;    float32 ***l_mixw_acc;    vector_t ***l_mean_acc;    vector_t ***l_var_acc;    vector_t ***mean;    float32 ***l_dnom;    gauden_t *g;    uint32 tmat_id, p_tmat_id;    uint32 p_ms, ms, s, l_s;    float32 ***tmat;    map_t *mixw_map; /* structure to map global mixw id's to local utt id's */    map_t *cb_map; /* structure to map global outprob id's to outprob id's */    uint32 cb;    uint32 l_cb;這是我部分的CODE詳細的我在寄給你

    Source(s): 自己
Still have questions? Get your answers by asking now.