% fg_03_01 % Chapter 3, example 3.1; Fig. 3.1 - discrete correlation. n=0:127; % Waveform values with periodic extension. X=[o…
HT-IDE3000 源代码
汇集 HT-IDE3000 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
function [H,Ht]=entropy(x); % function [H,Ht]=entropy(x). % % x =any INTEGER vector or array. (Real values are rounded.) % % …
#include #include #define N 15 //待编码字符的个数,即树中叶结点的最大个数 #define M 2*N-1 //树中总的结点数目 typedef struct { int weight; int father,…
//------------------- 公用的常量和类型 ---------------------------- #include #include #include #include //函数结果状态代码 #define TRU…
//*******************赫夫曼树和赫夫曼编码的存储表示************************ # include # include # include # define OVERFLOW -2 typedef …
/* algo6-2.cpp 实现算法6.13的程序,前半部分与algo6-1.cpp同 */ #include"c1.h" #include"c6-7.h" int min1(HuffmanTree t,int i) { /* 函数voi…
/* algo6-1.c 求赫夫曼编码。实现算法6.12的程序 */ #include"c1.h" #include"c6-7.h" int min1(HuffmanTree t,int i) { /* 函数void select()调用 …
;********************************************* ;FILE NAME: FRONT PANEL ;MCU: HT48R10A-1 ;MAST OPTION: WDT CLOCK SOURCE: DISABL…
#include #include #include int m,s1,s2; typedef struct { unsigned int weight; unsigned int parent,lchild,rchild; …
哈弗曼编码: #include #include #include int m,s1,s2; typedef struct { unsigned int weight; unsigned int parent,lchild…