|
楼主 |
发表于 2007-6-4 11:21
|
显示全部楼层
f(1)=ax*R1*XW+U0*R7*XW+ax*R2*YW+U0*R8*YW+ax*R3*ZW+U0*R9*ZW+ax*T1+U0*R7-R7*XW*U-R8*YW*U-R9*ZW*U-T3*U;
f(2)=ay*R4*XW+V0*R7*XW+ay*R5*YW+V0*R8*YW+ay*R6*ZW+V0*R9*ZW+ay*T2+V0*T3-R7*XW*V-R8*YW*V-R9*ZW*V-T3*V;
f(11)=R1^2+R4^2+R7^2-1;
f(12)=R2^2+R5^2+R8^2-1;
f(13)=R3^2+R6^2+R9^2-1;
f(14)=R1*R2+R4*R5+R7*R8;
f(15)=R1*R3+R4*R6+R7*R9;
f(16)=R2*R3+R5*R6+R8*R9;
在方程f(1)和f(2)中,U,V,XW,YW,ZW已知,并有8组数据,给出如下:
>>U1=39.6371;
>> V1=125.282;
>> XW1=286.6371;
>> YW1=780.2820;
>> ZW1=477;
>>U2=109.136;
>> V2=124.229;
>> XW2=356.1360;
>> YW2=779.229;
>>ZW2=477;
>>U3=220.756;
>> V3=123.176;
>> XW3=467.7560;
>> YW3=778.176;
>>
ZW3=477;
>>U4=310.262;
>> V4=121.07;
>> XW4=557.2620;
>> YW4=776.0700;
>>ZW4=477;
>>U5=426.094;
>> V5=121.07;
>> XW5=673.094;
>> YW5=776.07;
>>ZW5=477;
>>U6=501.911;
>>V6=120.017;
>>XW6=748.911;
>>YW6=775.017;
>>ZW6=477;
>>U7=624.061;
>>V7=120.017;
>>XW7=871.061;
>>YW7=775.017;
>>ZW7=477;
>>U8=699.878;
>>V8=120.017;
>>XW8=946.878,
>>YW8=775.017;
>>ZW8=477;
分别代入f(1)和f(2)得到16个方程,再与f(11)~f(16)联成含有24个方程的方程组,解出ax,ay,U0,VO,T1,T2,T3,R1,R2,R3,R4,R5,R6,R7,R8,R9共16个未知数,由于是超定方程组,所以要用到最小二乘法。 |
|