The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Moving Average on existing Graph

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
cqy2016 Posted - 08/25/2016 : 05:04:28 AM
Origin Ver. and Service Release (Select Help-->About Origin): Origin 2015
Operating System: windows 7

Hi,

Currently we have our graphs successfully created, and is there an easy way to simply add moving average graph onto the existing graph with, let's say 100 points?

Thanks and best regards!

CQY
3   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 08/29/2016 : 2:32:11 PM
Hi CQY,

You can also run the adjacent averaging smoothing ("Analysis> Signal Processing> Smoothing" menu)
directly on the plot as it is essentially the same to the moving averaging (by movavg function),
though there have a few minor differences as follows:

- movavg function can control averaging with both back and forward offsets. In the case of adjacent
averaging, back=forward, and "Points of Window"=(back+forward+1).

- Adjacent averaging has the "weighted average" option, and movavg doesn't have this option.
http://www.originlab.com/doc/Origin-Help/Smooth-Algorithm#The_adjacent-averaging_method

- Adjacent averaging has the "boundary condition" option (though None may be a typical choice), and
movavg doesn't have this option.
http://www.originlab.com/doc/Origin-Help/Smooth-Dialog

Hope this helps additionally.

--Hideo Fujii
OriginLab

P.S. As this is a post in LabTalk forum, if you want to use the adjacent averaging, you can use
"smooth" x-function in your LabTalk code..
http://www.originlab.com/doc/X-Function/ref/smooth
cqy2016 Posted - 08/26/2016 : 04:22:53 AM
quote:
Originally posted by Chris D

Hi,

Perhaps your best bet is to perform a moving average on the original data within the worksheet itself. Then plot that data along with the original data.

Add a new column to the worksheet and in the F(x)= row, use this function:
movavg(vd,back,forward)

Where vd is the source column (e.g. col(B)) and back and forward are the windows.

For example:
movavg(col(B),100,100)

I hope this helps.


Thanks,
Chris Drozdowski
Originlab Technical Support





Hi Chris,

Yep, this way works also.

Nice weekend!

Best regards!

CQY
Chris D Posted - 08/25/2016 : 09:57:26 AM
Hi,

Perhaps your best bet is to perform a moving average on the original data within the worksheet itself. Then plot that data along with the original data.

Add a new column to the worksheet and in the F(x)= row, use this function:
movavg(vd,back,forward)

Where vd is the source column (e.g. col(B)) and back and forward are the windows.

For example:
movavg(col(B),100,100)

I hope this helps.


Thanks,
Chris Drozdowski
Originlab Technical Support

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000