加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

一阶导数的3种近似:前向差分,后向差分,中心差分

(2016-01-14 10:44:17)
分类: computerVision

三种定义:
http://s14/mw690/002mfkyxgy6YyHQSPzT2d&690
这三种近似的误差是不一样的,






这里有zhihu上根据taylor展开来证明:
根据taylor展开得到一阶导数的计算公式,如果都只截取到第2项,那么中心求导的精度为平方(dx),这是因为一次项被抵消了。




forward difference 误差:
If the data values are equally spaced with the step size h, the truncation error of the forward difference approximation has the order of O(h)

backward difference误差:
If the data values are equally spaced with the step size h, the truncation error of the backward difference approximation has the order of O(h)

central difference误差:
If the data values are equally spaced, the central difference is an average of the forward and backward differences. The truncation error of the central difference approximation is order of O(h2), where h is the step size

结论就是从误差的角度来看,forward,backward是一样的,但是central最好,因此结论就是“尽量使用central”It is best to use central differences whenever possible


二阶导数:

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有