merhaba,
al için
sigma:=6;
offset:=0.85;
w0:= Exp(-Power(0-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w1:= Exp(-Power(1-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w2:= Exp(-Power(2-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w3:= Exp(-Power(3-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w4:= Exp(-Power(4-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w5:= Exp(-Power(5-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w6:= Exp(-Power(6-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w7:= Exp(-Power(7-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w8:= Exp(-Power(8-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
s0:= w0*Ref(C,-8);
s1:= w1*Ref(C,-7);
s2:= w2*Ref(C,-6);
s3:= w3*Ref(C,-5);
s4:= w4*Ref(C,-4);
s5:= w5*Ref(C,-3);
s6:= w6*Ref(C,-2);
s7:= w7*Ref(C,-1);
alma:=If((w0+w1+w2+w3+w4+w5+w6+w7+w8)>0,(s0+s1+s2+s3+s4+s5+s6+s7+w8*C)/(w0+w1+w2+w3+w4+w5+w6+w7+w8),C);
cross(alma,ref(alma,-1))
sat için
sigma:=6;
offset:=0.85;
w0:= Exp(-Power(0-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w1:= Exp(-Power(1-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w2:= Exp(-Power(2-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w3:= Exp(-Power(3-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w4:= Exp(-Power(4-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w5:= Exp(-Power(5-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w6:= Exp(-Power(6-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w7:= Exp(-Power(7-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
w8:= Exp(-Power(8-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2)));
s0:= w0*Ref(C,-8);
s1:= w1*Ref(C,-7);
s2:= w2*Ref(C,-6);
s3:= w3*Ref(C,-5);
s4:= w4*Ref(C,-4);
s5:= w5*Ref(C,-3);
s6:= w6*Ref(C,-2);
s7:= w7*Ref(C,-1);
alma:=If((w0+w1+w2+w3+w4+w5+w6+w7+w8)>0,(s0+s1+s2+s3+s4+s5+s6+s7+w8*C)/(w0+w1+w2+w3+w4+w5+w6+w7+w8),C);
cross(ref(alma,-1),alma)
şeklinde deneyebilirsiniz,
bilgilerinize