求双线性插值法的C语言程序!
人气:246 ℃ 时间:2020-06-11 07:22:20
解答
a b
t
c d
就是两次线性插值,先在x方向插出t上下方的_t1、_t2,然后再用它们插出t来
float test(float x,float y)
{
float _t1,_t2,t;
_t1 = a+(b-a)*(x-ax)/(bx-ax);
_t2 = c+(d-c)*(x-cx)/(dx-cx);
t = _t1 +(_t2-_t1)*(y - ay);
return t;
}
推荐
- 线性插值法是什么
- 七字成语有多少求大神帮助
- 怎么写反函数?比如y=x∧3 的反函数怎么写?
- 赊月洞庭
- 甲数的四分之三与乙数的三分之二相等,如果甲数是24,乙数是
- Do you have () color pens?Yes,I have() A.some,anyB.any,someC.some,some
- make up,deal with,break off,worry about,go by,write down,make a decision,be terrified of,很上面一样
- 1.世界七大奇观是什么
猜你喜欢