rms calculation on a profile

Moderators: cyao, michael_borland

Post Reply
Philippe Piot
Posts: 83
Joined: 20 Aug 2008, 13:18
Location: Northern Illinois University & Argonne National Laboratory
Contact:

rms calculation on a profile

Post by Philippe Piot » 06 Jul 2016, 16:05

I was wondering is there is a way to compute the statistic (e.g. rms) of one column (a variable) using another column as weight. For instance I generate some profiles I(x) versus x and want to compute <x^2> using sddsrunstat or similar. Right now I use sddsprocess generate the I(x)*x*x, I(x)*x, etc.. columns and then compute manually the quantity I am interested in. There is probably a better way. Thank you, -- Philippe.

michael_borland
Posts: 2008
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: rms calculation on a profile

Post by michael_borland » 06 Jul 2016, 17:19

Philippe,

Yes, you can do this using sddsprocess, e.g.,

Code: Select all

sddsprocess ... -process=x,rms,xRms,weightBy=Intensity 
--Michael

Post Reply