ITPub博客

首页 > IT职业 > IT图书 > m序列的生成--闲来无事写代码

m序列的生成--闲来无事写代码

IT图书 作者:wh7577 时间:2021-09-09 09:00:38 0 删除 编辑

m序列的生成

CDMA通信中应用最广泛的伪随机序列是m序列,它是由线性反馈移存器产生的周期最长的二进制数字序列

import java.util.Scanner;

public class MserquenceGenerate {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int arr[]=new int[4];
        String mStr="";
        System.out.println("请设置初始状态:");
        for (int i = 0; i 0 ; j--) {
                arr[j]=arr[j-1];
            }
            arr[0]=tmp;

            i++;
        }
        System.out.println("周期序列输出为:");
        System.out.println(mStr);
    }
}

m序列的特性

1.平衡特性
2.游程分布特性
3.延位相加特性

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2480/viewspace-2798590/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-23

  • 博文量
    105
  • 访问量
    15390