xiaoqiugood的个人博客分享 http://blog.sciencenet.cn/u/xiaoqiugood

博文

关于origin曲线平滑处理 lowess

已有 21389 次阅读 2019-6-6 22:52 |个人分类:小技巧|系统分类:科研笔记

关注:

1) origin数据积分、寻峰

2) origin数据平滑处理




https://www.originlab.com/origin#Peak_Analysis





https://www.originlab.com/doc/Origin-Help/Smooth-Algorithm


The Lowess and Loess method

Lowess and Loess are abbreviations for "locally weighted scatterplot smoothing" or "locally weighted least squares". We say "locally" because we calculate each smoothed value using neighboring points contained within a span of values. This method is classically performed by the following steps:

  1. Calculate weights for a center point x_i, and all neighboring points contained within the span, using the tri-cube weight function...where x is a neighbor point within the span associated to the current center point x_i, and d_i is the distance along the abscissa from x_i to the most distant neighbor points within the span.

    • w_i(x)=(1-(\frac{|x-x_i|}{d_i})^3)^3

  2. Perform the weighted least square regression.

    • For Lowess, a weighted linear regression is used.

    • For Loess, a second-order polynomial regression is used.

  3. Obtain predicted value (x_i,\hat{y}_i) given in the step2 for x_i.

  4. Move to next point x_{i+1}, then perform step1-3 to get predicted value (x_{i+1},\hat{y}_{i+1}). The calculation stops when all points are calculated.

https://jingyan.baidu.com/article/fa4125ac2fa80e28ac709298.html


https://jingyan.baidu.com/article/00a07f386efe2d82d128dc62.html

  1. 用Origin左侧工具栏上的 “数据范围选取工具”(双箭头那个),点击一下图标,会看到图线中的起点和终点位置分别出现两个相背的箭头,然后用鼠标分别拉动这两个箭头到你希望平滑的图线部分。按回车键确定范围。按下回车之后,双箭头变成箭头相对的方向(这样操作之后,你下一步的平滑工作就只对这个范围内的图线进行操作,而不会影响选取范围之外的图线)。

  2. 点击Origin菜单栏上的 Analysis ——> Signal Process ——> Smooth ——> Open Dialog

  3. 在弹出的对话框中,选择 Method: FFT Filter。然后自己试试调节一下 Points of Window,以获得你满意的效果,点击OK 完成平滑




对话框中的参数可以根据平滑的效果而调节,不必担心参数设置好不好,设置不好可以再回来修改。一般我自己使用时,“recalculate”选择auto;method可以挨个挑选试试效果,差别不大;比较重要的是“points of window”,这个地方的数字越大,平滑曲线越光滑,但是越失真,这个根据自己的需要来定,一般该数字选择奇数。然后点击最下方的“preview”预览效果,如图。





https://blog.sciencenet.cn/blog-567091-1183498.html

上一篇:关于单分子层吸附
下一篇:朝花夕拾:Jade-XRD 氢化腐蚀
收藏 IP: 125.67.187.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (1 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-27 02:07

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部