computelbar.m

来自「压缩文件中是Error Correction Coding - Mathemat」· M 代码 · 共 19 行

M
19
字号
function L = computeLbar(n,k,q,t)%function L = computeLbar(n,k,q,t)%% Compute the average number of codewords in a% Hamming sphere of radius t around an randomly chosen% point for an (n,k) code over GF(q)% Todd K. Moon, Feb. 12, 2004% Copyright 2004 by Todd K. Moon% Permission is granted to use this program/data% for educational/research onlyL = 0;for s=0:t  L = L + nchoosek(n,s)*(q-1)^s;endL = L/(q^(n-k));

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?