标签:
5.
我的答案如下:
由题可知:Fx(0)=0,Fx(1),Fx(2)=0.5,Fx(3)=1 l0=0,u0=1
由公式
lk=lk+(uk-lk)Fx(xk-1)
uk=lk+(uk-lk)Fx(xk)
及序列为113231
(1) k=1,input 1
l1=l0+(u0-l0)Fx(0)=0
u1=l0+(u0-l0)Fx(1)=0.2
(2) k=2,input 1
l2=l1+(u1-l1)Fx(0)=0
u2=l1+(u1-l1)Fx(1)=0+(1-0)*0.2=0.04
(3) k=3,input 3
l3=l2+(u2-l2)Fx(2)=0+(0.04-0)*0.5=0.02
u3=l2+(u2-l2)Fx(3)=0+(0.04-0)*1=0.04
(4) k=4,input 2
l4=l3+(u3-l3)Fx(1)=0.02+(0.04-0.02)*0.2=0.024
u4=l3+(u3-l3)Fx(2)=0.02+(0.04-0.02)*0.5=0.03
(5) k=5,input 3
l5=l4+(u4-l4)Fx(2)=0.024+(0.03-0.024)*0.5=0.027
u5=l4+(u4-l4)Fx(3)=0.024+(0.03-0.024)*1=0.03
(6) k=6,input 1
l6=l5+(u5-l5)Fx(0)=0.027+(0.03-0.027)*0=0.027
u6=l5+(u5-l5)Fx(1)=0.027+(0.03-0.027)*1=0.03
T(113231)=( l6+u6)/2=(0.027+0.03)/2=0.0285
6.
解:由题可知:Fx(0)=0,Fx(1),Fx(2)=0.5,Fx(3)=1 l0=0,u0=1
(1)k=1
因为t*=(标签-lk-1)/(uk-1-lk-1)=(0.63215699-0)/(1-0)=0.63215699
则Fx(2)=0.5<t*<1=Fx(3) 可得input 3
l1=l0+(u0-l0)Fx(2)=0+( 1-0 )*0.5=0.5
u1=l0+(u0-l0)Fx(3)=0+( 1-0 )*1=1
(2)k=2
因为t*=(标签-lk-1)/(uk-1-lk-1)=(0.63215699-0.5)/(1-0.5)=0.26431398
则Fx(1)=0.2<t*<0.5=Fx(2) 可得input 32
l2=l1+(u1-l1)Fx(1)=0.5+( 1- 0.5)*0.2=0.6
u2=l1+(u1-l1)Fx(2)=0.5+( 1-0.5 )*0.5=0.75
(3)k=3
因为t*=(标签-lk-1)/(uk-1-lk-1)=(0.63215699-0.6)/(0.75-0.6)=0.21437993
则Fx(1)=0.2<t*<0.5=Fx(2) 可得input 322
l3=l2+(u2-l2)Fx(1)=0.6+(0.75 -0.6 )*0.2=0.63
u3=l2+(u2-l2)Fx(2)=0.6+(0.75 -0.6 )*0.5=0.675
.........
(9)k=9
因为t*=(标签-lk-1)/(uk-1-lk-1)=(0.63215699-0.632124)/(0.632205-0.632124)=0.000081
则Fx(0)=0<t*<0.2=Fx(1) 可得input 322121321
l9=l8+(u8-l8)Fx(0)=0
u9=l8+(u8-l8)Fx(1)=0.632124+(0.632205 - 0.632124)*0.2=0.6321402
(10)k=10
因为t*=(标签-lk-1)/(uk-1-lk-1)=(063215699-0.632124)/(0.6321402-0.632124)=0.20364198
则Fx(1)=0.2<t*<0.5=Fx(2) 可得input 3221213212
最后可得序列编码为:a3a2a2a1a2a1a3a2a1a2
标签:
原文地址:http://www.cnblogs.com/chenxiaoli/p/4818702.html