📄 hammsphere.m
字号:
function V = Hammsphere(n,q,t)%function V = Hammsphere(n,q,t)%% Compute the number of vectors in a Hamming sphere of radius t% in a q-ary code of length n% Todd K. Moon, May 25, 2004% Copyright 2004 by Todd K. Moon% Permission is granted to use this program/data% for educational/research onlyV = 0;for s=0:t V = V + nchoosek(n,s)*(q-1)^s;end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -