亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? verify.c

?? ldpc的11個程序 encode decode extract make-gen make-ldpc make-pchk print-gen print-pchk rand-src transm
?? C
字號:
/* VERIFY.C - Verify encoded or decoded blocks. *//* Copyright (c) 2000, 2001 by Radford M. Neal  * * Permission is granted for anyone to copy, use, or modify this program  * for purposes of research or education, provided this copyright notice  * is retained, and note is made of any changes that have been made.  * * This program is distributed without any warranty, express or implied. * As this program was written for research purposes only, it has not been * tested to the degree that would be advisable in any important application. * All use of this program is entirely at the user's own risk. */#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#include "alloc.h"#include "blockio.h"#include "open.h"#include "mod2sparse.h"#include "mod2dense.h"#include "mod2convert.h"#include "rcode.h"#include "check.h"void usage(void);/* MAIN PROGRAM. */int main( int argc,  char **argv){  char *coded_file, *source_file;  char *pchk_file, *gen_file;  int table;  char *sblk, *cblk, *chks;  int seof, ceof;  int srcerr, chkerr, bit_errs;  int i, n;  FILE *srcf, *codef;  int tot_srcerrs, tot_chkerrs, tot_botherrs;  /* Look at arguments. */  table = 0;  if (argc>1 && strcmp(argv[1],"-t")==0)  { table = 1;    argc -= 1;    argv += 1;  }  if (argc<3 || argc>5) usage();  if (!(pchk_file = argv[1])   || !(coded_file = argv[2]))  { usage();  }   gen_file = 0;  source_file = 0;  if (argv[3])  { gen_file = argv[3];    if (argv[4])    { source_file = argv[4];      if (argv[5])      { usage();      }    }  }  if ((strcmp(pchk_file,"-")==0)     + (strcmp(coded_file,"-")==0)     + (source_file!=0 && strcmp(source_file,"-")==0)    + (gen_file!=0 && strcmp(gen_file,"-")==0) > 1)  { fprintf(stderr,"Can't read more than one stream from standard input\n");    exit(1);  }  /* Read parity check file. */  read_pchk(pchk_file);  if (N<=M)  { fprintf(stderr,     "Number of bits (%d) should be greater than number of checks (%d)\n",N,M);    exit(1);  }  /* Read generator matrix file, if given, up to the point of finding     out which are the message bits. */  if (gen_file!=0)  { read_gen(gen_file,1,0);  }  /* Open coded file to check. */  codef = open_file_std(coded_file,"r");  if (codef==NULL)  { fprintf(stderr,"Can't open coded file: %s\n",coded_file);    exit(1);  }  /* Open source file to verify against, if given. */  if (source_file!=0)  {     srcf = open_file_std(source_file,"r");    if (srcf==NULL)    { fprintf(stderr,"Can't open source file: %s\n",source_file);      exit(1);    }  }  sblk = chk_alloc (N-M, sizeof *sblk);  cblk = chk_alloc (N, sizeof *cblk);  chks = chk_alloc (M, sizeof *chks);  /* Print header for table. */  if (table)  { if (gen_file!=0)    { printf("  block chkerrs srcerrs\n");    }    else    { printf("  block chkerrs\n");    }  }  /* Verify successive blocks. */  tot_srcerrs = 0;  tot_chkerrs = 0;  tot_botherrs = 0;  bit_errs = 0;  seof = 0;   ceof = 0;  for (n = 0; ; n++)  {     /* Read block from coded file. */        if (blockio_read(codef,cblk,N)==EOF)     { ceof = 1;    }    /* Read block from source file, if given. */    if (source_file!=0 && !ceof && !seof)    { if (blockio_read(srcf,sblk,N-M)==EOF)       { fprintf(stderr,"Warning: Not enough source blocks (only %d)\n",n);        seof = 1;      }    }    /* Stop if end of received file. */    if (ceof) break;    /* Check that received block is a code word, and if not find the number of       parity check errors. */    chkerr = check(H,cblk,chks);    /* Check against source block, if provided, or against zeros, if       the generator matrix was provided but no source file. */    if (gen_file!=0)    { srcerr = 0;      if (source_file!=0 && !seof)      { for (i = M; i<N; i++)        { if (cblk[cols[i]]!=sblk[i-M])          { srcerr += 1;          }        }      }      if (source_file==0)      { for (i = M; i<N; i++)        { if (cblk[cols[i]]!=0)          { srcerr += 1;          }        }      }      bit_errs += srcerr;    }    /* Print table entry. */    if (table)    { if (gen_file!=0)      { printf("%6d %7d %7d\n",n,chkerr,srcerr);      }      else      { printf("%6d %7d\n",n,chkerr);      }    }    /* Increment totals. */    if (chkerr) tot_chkerrs += 1;    if (gen_file!=0 && (source_file==0 || !seof))    { if (srcerr) tot_srcerrs += 1;      if (srcerr && chkerr) tot_botherrs += 1;    }  }  /* Write final statistics to standard error.  Flush standard output      first to avoid mixing of output. */  fflush(stdout);  if (gen_file!=0)  { fprintf(stderr,     "Block counts: tot %d, with chk errs %d, with src errs %d, both %d\n",      n, tot_chkerrs, tot_srcerrs, tot_botherrs);    fprintf(stderr,     "Bit error rate (on message bits only): %.3e\n",       (double)bit_errs/(n*(N-M)));  }  else  { fprintf (stderr,      "Block counts: tot %d, with chk errs %d\n", n, tot_chkerrs);  }  return 0;}/* PRINT USAGE MESSAGE AND EXIT. */void usage(void){ fprintf(stderr, "Usage: verify [ -t ] pchk-file decoded-file [ gen-file [ source-file ] ]\n");  exit(1);}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩亚洲不卡| 亚洲日本一区二区| 亚洲精品国产一区二区三区四区在线 | 久久精品99久久久| 一本色道久久综合精品竹菊| 精品嫩草影院久久| 天天综合色天天综合色h| 不卡的电视剧免费网站有什么| 欧美一级午夜免费电影| 有坂深雪av一区二区精品| 国产剧情在线观看一区二区| 7777精品伊人久久久大香线蕉超级流畅 | 日韩免费视频一区二区| 一区二区在线电影| 99精品欧美一区二区三区综合在线| 精品国产乱码久久| 老色鬼精品视频在线观看播放| 欧美午夜宅男影院| 亚洲亚洲精品在线观看| 91啦中文在线观看| 亚洲欧美另类小说| 一本色道久久加勒比精品| 国产精品国产精品国产专区不片| 狠狠色综合色综合网络| 在线综合亚洲欧美在线视频| 一区二区三区日韩| 欧美性一区二区| 亚洲国产日韩综合久久精品| 在线视频一区二区免费| 亚洲综合色成人| 欧美日韩综合在线免费观看| 亚洲一区二区三区激情| 欧美午夜在线观看| 午夜久久久影院| 欧美一区二区精美| 久久国产精品99久久久久久老狼| 精品卡一卡二卡三卡四在线| 极品瑜伽女神91| 久久一区二区三区四区| 国产精品1区2区| 国产精品短视频| 欧美视频一二三区| 免费观看久久久4p| 国产日韩欧美a| 成人精品视频一区| 樱桃视频在线观看一区| 在线播放中文一区| 国产原创一区二区| 亚洲视频一区二区在线观看| 欧美喷水一区二区| 激情综合色丁香一区二区| 久久视频一区二区| 91在线国产观看| 午夜精品久久久久影视| 精品久久久网站| 成人av网址在线| 亚洲午夜成aⅴ人片| 精品国产免费视频| 成人天堂资源www在线| 亚洲自拍偷拍欧美| 欧美tickling网站挠脚心| 成人av网在线| 日本vs亚洲vs韩国一区三区二区| 久久在线观看免费| 欧美综合一区二区| 国产在线看一区| 亚洲一区二区中文在线| 久久久99久久精品欧美| 在线亚洲+欧美+日本专区| 精品亚洲porn| 亚洲高清视频中文字幕| 久久人人超碰精品| 69堂国产成人免费视频| 国产成人亚洲精品青草天美| 五月天视频一区| 国产精品卡一卡二卡三| 欧美一区二区国产| 91蜜桃网址入口| 黄网站免费久久| 亚洲va欧美va人人爽| 欧美激情一区二区三区全黄| 7777精品伊人久久久大香线蕉完整版 | 麻豆传媒一区二区三区| 亚洲日本一区二区| 欧美激情一区二区三区| 91精品国产综合久久久久久久| 成人黄色综合网站| 国模一区二区三区白浆| 亚洲电影视频在线| 亚洲欧洲性图库| 久久久精品欧美丰满| 欧美美女黄视频| 色老汉av一区二区三区| av色综合久久天堂av综合| 国产美女一区二区| 男人的j进女人的j一区| 午夜精品久久久久| 国产精品久久久久久久久晋中 | 久草中文综合在线| 日韩高清一区在线| 午夜精品一区二区三区三上悠亚| 亚洲女人****多毛耸耸8| 亚洲国产精品av| 中文字幕精品三区| 国产精品免费av| 国产精品免费av| 国产精品伦理一区二区| 欧美国产97人人爽人人喊| 精品国产免费久久| 久久蜜桃一区二区| 久久综合久久99| 久久久久久99精品| 久久午夜免费电影| 中文字幕乱码日本亚洲一区二区 | 国产成人免费在线观看不卡| 激情图区综合网| 精品一区二区三区日韩| 国产一区二区三区最好精华液| 激情国产一区二区| 国产高清久久久久| www..com久久爱| 日本久久一区二区三区| 欧美日韩一区精品| 制服丝袜亚洲色图| 亚洲精品一区二区三区精华液 | 成人毛片在线观看| 99久久伊人久久99| 日本道色综合久久| 欧美久久久久久久久中文字幕| 欧美日韩国产综合一区二区三区| 7777精品伊人久久久大香线蕉最新版 | 欧美日韩亚洲综合一区二区三区| 欧美美女直播网站| 精品国产自在久精品国产| 国产日韩欧美精品在线| 亚洲人吸女人奶水| 午夜精品国产更新| 国产精品一区二区三区四区| 岛国一区二区三区| 欧美三级视频在线播放| 欧美成人猛片aaaaaaa| 亚洲国产激情av| 亚洲成人av在线电影| 麻豆国产精品视频| 91在线国内视频| 欧美一区二区网站| 国产精品免费久久久久| 亚洲成人免费视| 国产一区欧美二区| 欧美自拍偷拍午夜视频| 精品美女一区二区| 亚洲精品日韩综合观看成人91| 日韩二区三区四区| 成人精品亚洲人成在线| 7777精品伊人久久久大香线蕉的 | 亚洲欧洲在线观看av| 日韩精品亚洲专区| youjizz久久| 日韩美女视频在线| 成人免费在线观看入口| 理论电影国产精品| 精品视频色一区| 国产精品午夜免费| 男女男精品视频| 欧美在线影院一区二区| 国产色爱av资源综合区| 性做久久久久久久免费看| 成人国产精品免费网站| 日韩欧美国产小视频| 亚洲色图一区二区| 国产高清亚洲一区| 日韩你懂的在线播放| 亚洲成精国产精品女| 99久久综合99久久综合网站| 久久五月婷婷丁香社区| 蜜桃av一区二区| 欧美色网站导航| 亚洲三级久久久| 99久久精品国产观看| 国产清纯在线一区二区www| 久久精品久久99精品久久| 欧美日韩高清一区二区不卡| 亚洲欧美一区二区三区国产精品 | 国产一区二区在线观看视频| 在线成人av影院| 亚洲福利视频一区二区| 欧美特级限制片免费在线观看| 亚洲欧美自拍偷拍色图| 成人av午夜影院| 中文字幕一区二区5566日韩| 国产精品456| 欧美激情一区二区三区四区| 国产一区不卡精品| 久久精品一区二区三区四区| 国产乱人伦偷精品视频不卡| 2021国产精品久久精品| 国产精品羞羞答答xxdd| 国产色产综合产在线视频| 粉嫩aⅴ一区二区三区四区| 国产精品美女久久久久久久久 |