Page 1 of 1

rms calculation on a profile

Posted: 06 Jul 2016, 16:05
by Philippe Piot
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.

Re: rms calculation on a profile

Posted: 06 Jul 2016, 17:19
by michael_borland
Philippe,

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

Code: Select all

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