卷积码 c语言编码,利用c语言实现卷积码编码器示例

本文提供了一个使用C语言实现(2, 1, 7)卷积码编码器的示例,详细解释了编码过程,包括信息序列扩展、生成序列、移位寄存器操作等关键步骤。" 105900003,9507504,Python asyncio:wait与gather的区别解析,"['Python', '异步编程', '并发处理', 'asyncio库']
摘要由CSDN通过智能技术生成

2014

这篇文章主要介绍了利用c语言实现卷积码编码器示例,需要的朋友可以参考下

实现(2, 1, 7)卷积码编码

信息序列1001 1010 1111 1100

生成序列g1 = 1011011;g2 = 1111001

初始状态全0.

以上参数可自行在main中修改。

/***This is an simple example program of convolutional encoder.

*The information sequence, the register initial states and the generation sequence

*    can all be modified in the main function.

*/

#include

#define LEN(array, len){len=sizeof(array)/sizeof(array[0]);}//Size of array

int encoder(int **gen, int n, int L, int reg[], int m, int inf[], int inf_len, int output[])

/*encoder(int **gen, int n, int L, int reg[], int m, int inf[], int inf_len, int output[])

*This function is a convolutional encoder.

*gen     is the generation sequence, which is a two-dimension array,

and it is a two-dimension pointer,

*n       is the number of bits out the en

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值