%独立性检验的统计函数
function result=freq(rando,rande)
[rowo,colo]=size(rando);
[rowe,cole]=size(rande);
result=zeros(11,11);
for i=1:colo
k=1;
if rando(1,i)<=0.1 & rando(1,i)>0
if rande(1,i)>0 & rande(1,i)<=0.1
result(k,1)=result(k,1)+1;
end
if rande(1,i)>0.1 & rande(1,i)<=0.2
result(k,2)=result(k,2)+1;
end
if rande(1,i)>0.2 & rande(1,i)<=0.3
result(k,3)=result(k,3)+1;
end
if rande(1,i)>0.3 & rande(1,i)<=0.4
result(k,4)=result(k,4)+1;
end
if rande(1,i)>0.4 & rande(1,i)<=0.5
result(k,5)=result(k,5)+1;
end
if rande(1,i)>0.5 & rande(1,i)<=0.6
result(k,6)=result(k,6)+1;
end
if rande(1,i)>0.6 & rande(1,i)<=0.7
result(k,7)=result(k,7)+1;
end
if rande(1,i)>0.7 & rande(1,i)<=0.8
result(k,8)=result(k,8)+1;
end
if rande(1,i)>0.8 & rande(1,i)<=0.9
result(k,9)=result(k,9)+1;
end
if rande(1,i)>0.9 & rande(1,i)<1
result(k,10)=result(k,10)+1;
end
end
k=2;
if rando(1,i)<=0.2 & rando(1,i)>0.1
if rande(1,i)>0 & rande(1,i)<=0.1
result(k,1)=result(k,1)+1;
end
if rande(1,i)>0.1 & rande(1,i)<=0.2
result(k,2)=result(k,2)+1;
end
if rande(1,i)>0.2 & rande(1,i)<=0.3
result(k,3)=result(k,3)+1;
end
if rande(1,i)>0.3 & rande(1,i)<=0.4
result(k,4)=result(k,4)+1;
end
if rande(1,i)>0.4 & rande(1,i)<=0.5
result(k,5)=result(k,5)+1;
end
if rande(1,i)>0.5 & rande(1,i)<=0.6
result(k,6)=result(k,6)+1;
end
if rande(1,i)>0.6 & rande(1,i)<=0.7
result(k,7)=result(k,7)+1;
end
if rande(1,i)>0.7 & rande(1,i)<=0.8
result(k,8)=result(k,8)+1;
end
if rande(1,i)>0.8 & rande(1,i)<=0.9
result(k,9)=result(k,9)+1;
end
if rande(1,i)>0.9 & rande(1,i)<1
result(k,10)=result(k,10)+1;
end
end
k=3;
if rando(1,i)<=0.3 & rando(1,i)>0.2
if rande(1,i)>0 & rande(1,i)<=0.1
result(k,1)=result(k,1)+1;
end
if rande(1,i)>0.1 & rande(1,i)<=0.2
result(k,2)=result(k,2)+1;
end
if rande(1,i)>0.2 & rande(1,i)<=0.3
result(k,3)=result(k,3)+1;
end
if rande(1,i)>0.3 & rande(1,i)<=0.4
result(k,4)=result(k,4)+1;
end
if rande(1,i)>0.4 & rande(1,i)<=0.5
result(k,5)=result(k,5)+1;
end
if rande(1,i)>0.5 & rande(1,i)<=0.6
result(k,6)=result(k,6)+1;
end
if rande(1,i)>0.6 & rande(1,i)<=0.7
result(k,7)=result(k,7)+1;
end
if rande(1,i)>0.7 & rande(1,i)<=0.8
result(k,8)=result(k,8)+1;
end
if rande(1,i)>0.8 & rande(1,i)<=0.9
result(k,9)=result(k,9)+1;
end
if rande(1,i)>0.9 & rande(1,i)<1
result(k,10)=result(k,10)+1;
end
end
k=4;
if rando(1,i)<=0.4 & rando(1,i)>0.3
if rande(1,i)>0 & rande(1,i)<=0.1
result(k,1)=result(k,1)+1;
end
if rande(1,i)>0.1 & rande(1,i)<=0.2
result(k,2)=result(k,2)+1;
end
if rande(1,i)>0.2 & rande(1,i)<=0.3
result(k,3)=result(k,3)+1;
end
if rande(1,i)>0.3 & rande(1,i)<=0.4
result(k,4)=result(k,4)+1;
end
if rande(1,i)>0.4 & rande(1,i)<=0.5
result(k,5)=result(k,5)+1;
end
if rande(1,i)>0.5 & rande(1,i)<=0.6
result(k,6)=result(k,6)+1;
end
if rande(1,i)>0.6 & rande(1,i)<=0.7
result(k,7)=result(k,7)+1;
end
if rande(1,i)>0.7 & rande(1,i)<=0.8
result(k,8)=result(k,8)+1;
end
if rande(1,i)>0.8 & rande(1,i)<=0.9
result(k,9)=result(k,9)+1;
end
if rande(1,i)>0.9 & rande(1,i)<1
result(k,10)=result(k,10)+1;
end
end
k=5;
if rando(1,i)<=0.5 & rando(1,i)>0.4
if rande(1,i)>0 & rande(1,i)<=0.1
result(k,1)=result(k,1)+1;
end
if rande(1,i)>0.1 & rande(1,i)<=0.2
result(k,2)=result(k,2)+1;
end
if rande(1,i)>0.2 & rande(1,i)<=0.3
result(k,3)=result(k,3)+1;
end
if rande(1,i)>0.3 & rande(1,i)<=0.4
result(k,4)=result(k,4)+1;
end
if rande(1,i)>0.4 & rande(1,i)<=0.5
result(k,5)=result(k,5)+1;
end
if rande(1,i)>0.5 & rande(1,i)<=0.6
result(k,6)=result(k,6)+1;
end
if rande(1,i)>0.6 & rande(1,i)<=0.7
result(k,7)=result(k,7)+1;
end
if rande(1,i)>0.7 & rande(1,i)<=0.8
result(k,8)=result(k,8)+1;
end
if rande(1,i)>0.8 & rande(1,i)<=0.9
result(k,9)=result(k,9)+1;
end
if rande(1,i)>0.9 & rande(1,i)<1
result(k,10)=result(k,10)+1;
end
end
k=6;
if rando(1,i)<=0.6 & rando(1,i)>0.5
if rande(1,i)>0 & rande(1,i)<=0.1
result(k,1)=result(k,1)+1;
end
if rande(1,i)>0.1 & rande(1,i)<=0.2
result(k,2)=result(k,2)+1;
end
if rande(1,i)>0.2 & rande(1,i)<=0.3
result(k,3)=result(k,3)+1;
end
if rande(1,i)>0.3 & rande(1,i)<=0.4
result(k,4)=result(k,4)+1;
end
if rande(1,i)>0.4 & rande(1,i)<=0.5
result(k,5)=result(k,5)+1;
end
if rande(1,i)>0.5 & rande(1,i)<=0.6
result(k,6)=result(k,6)+1;
end
if rande(1,i)>0.6 & rande(1,i)<=0.7
result(k,7)=result(k,7)+1;
end
if rande(1,i)>0.7 & rande(1,i)<=0.8
result(k,8)=result(k,8)+1;
end
if rande(1,i)>0.8 & rande(1,i)<=0.9
result(k,9)=result(k,9)+1;
end
if rande(1,i)>0.9 & rande(1,i)<1
result(k,10)=result(k,10)+1;
end
end
k=7;
if rando(1,i)<=0.7 & rando(1,i)>0.6
if rande(1,i)>0 & rande(1,i)<=0.1
result(k,1)=result(k,1)+1;
end
if rande(1,i)>0.1 & rande(1,i)<=0.2
result(k,2)=result(k,2)+1;
end
if rande(1,i)>0.2 & rande(1,i)<=0.3
result(k,3)=result(k,3)+1;
end
if rande(1,i)>0.3 & rande(1,i)<=0.4
result(k,4)=result(k,4)+1;
end
if rande(1,i)>0.4 & rande(1,i)<=0.5
result(k,5)=result(k,5)+1;
end
if rande(1,i)>0.5 & rande(1,i)<=0.6
result(k,6)=result(k,6)+1;
end
if rande(1,i)>0.6 & rande(1,i)<=0.7
result(k,7)=result(k,7)+1;
end
if rande(1,i)>0.7 & rande(1,i)<=0.8
result(k,8)=result(k,8)+1;
end
if rande(1,i)>0.8 & rande(1,i)<=0.9
result(k,9)=result(k,9)+1;
end
if rande(1,i)>0.9 & rande(1,i)<1
result(k,10)=result(k,10)+1;
end
end
k=8;
if rando(1,i)<=0.8 & rando(1,i)>0.7
if rande(1,i)>0 & rande(1,i)<=0.1
result(k,1)=result(k,1)+1;
end
if rande(1,i)>0.1 & rande(1,i)<=0.2
result(k,2)=result(k,2)+1;
end
if rande(1,i)>0.2 & rande(1,i)<=0.3
result(k,3)=result(k,3)+1;
end
if rande(1,i)>0.3 & rande(1,i)<=0.4
result(k,4)=result(k,4)+1;
end
if rande(1,i)>0.4 & rande(1,i)<=0.5
result(k,5)=result(k,5)+1;
end
if rande(1,i)>0.5 & rande(1,i)<=0.6
result(k,6)=result(k,6)+1;
end
if rande(1,
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
《信息隐藏技术实验教程》MATLAB源码!.zip (92个子文件)
《信息隐藏技术实验教程》MATLAB源码!
第七章
plotcorr_coef.m 1023B
detectbasic_wm.m 681B
cellauto.m 2KB
wavedetect2.m 658B
BASIC_WM.M 839B
wavemarksvd.m 3KB
wavedetect.m 2KB
dctwatermark.m 902B
wavemarksvd2.m 2KB
第六章
extractdctadv.m 1KB
hidedctadv.m 2KB
jpgandalpha.m 1KB
第九章
Noiseadd16.m 616B
plotmedian.m 870B
plotmosaic.m 869B
blurringL16.m 912B
sharpL.m 522B
plotaddnoise.m 915B
MEDIAN16.M 547B
plotblurring.m 969B
sharpS.m 518B
PLOTJPEG.M 879B
Mosaic16.m 587B
第二章
hashreplacement.m 896B
runtest.m 799B
md52num.m 147B
randinterval.m 1KB
table.m 571B
md5.m 3KB
randU1.m 691B
mrand.m 527B
randU2.m 780B
md5DLL.dll 173KB
randCL.m 454B
randCS.m 470B
第八章
globaladaptive.m 2KB
mse.m 682B
LUMMASK.M 1KB
watsondistorsion.m 963B
csf.m 1KB
watsonthreshold.m 848B
snr.m 944B
wsnr.m 770B
第三章
dctcom.m 995B
wavelet1D.m 956B
imagenr.m 1KB
imagecbe.m 1KB
imagecom.m 1KB
zigzag.m 1KB
wavelet2D.m 1KB
第一章
rgbanalysis.m 1KB
第五章
editp1bi.m 995B
computep1bi.m 240B
compare.m 456B
lumextract.m 1KB
patchworkwm.m 1KB
lsbhide.m 1KB
randlsbhide.m 1KB
lumhide.m 1KB
binaryhide.m 2KB
lsbget.m 913B
available.m 3KB
binaryextract.m 1KB
jpgandlumda.m 908B
patchdetect.m 972B
brightanalysis.m 1KB
randlsbget.m 932B
第四章
hashreplacement.m 896B
replace32fun.m 6KB
hashdisturb.m 819B
magicreplace.m 1KB
replacemagicfun.m 834B
diamondreplace.m 690B
imagehide.m 2KB
fourthbitcmp.m 1KB
其它函数
blurringL8.m 974B
watermark.m 1KB
freq.m 11KB
RANDASSO.M 458B
CHAOTIC1.M 379B
MOSAIC.M 605B
NOISEADD.M 633B
jpeg压缩的MATLAB代码.zip 55KB
CSF2.M 1KB
shannon.m 859B
MEDIAN.M 523B
hidedct.m 1KB
MD5散列函数的MATLAB代码.zip 95KB
extractdct.m 636B
CSF1.M 1KB
plothist.m 1KB
MD5散列函数的C代码.zip 7KB
新建文件夹
共 92 条
- 1
资源评论
普通网友
- 粉丝: 1
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 高等数学第一章第二节数列的极限
- Python 版冒泡排序算法源代码
- tensorflow-gpu-2.7.2-cp38-cp38-manylinux2010-x86-64.whl
- tensorflow-2.7.3-cp39-cp39-manylinux2010-x86-64.whl
- tensorflow-2.7.2-cp39-cp39-manylinux2010-x86-64.whl
- Python版本快速排序源代码
- Python 语言版的快速排序算法实现
- 450815388207377安卓_base.apk
- 超微主板 X9DRE-TF+ bios 支持 nvme启动
- 基于Python通过下载气象数据和插值拟合离散数据曲线实现对寒潮过程的能量分析
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功