sddsprocess multiple columns averaging

Moderators: cyao, michael_borland

Post Reply
headdoggy64
Posts: 36
Joined: 18 Jul 2014, 12:44

sddsprocess multiple columns averaging

Post by headdoggy64 » 22 Oct 2014, 14:11

Hello all,

I have a sdds file with multiple columns.
Is there any standard way in sddsprocess to create a column with averaged values of these columns in rows?

So far I used the simplest way to add up all values and divide by the number of columns, but the problem is the number of columns may vary and I would like this to be accounted for automatically (if possible).

Thank you.

headdoggy64
Posts: 36
Joined: 18 Jul 2014, 12:44

Re: sddsprocess multiple columns averaging

Post by headdoggy64 » 27 Oct 2014, 11:37

The question comes from the following. Initially I have a set of SDDS files with similar distributions and I would like to average these files to end up with one single "reweighed" distribution.

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

Re: sddsprocess multiple columns averaging

Post by michael_borland » 27 Oct 2014, 12:16

You can use the program sddsrowstats to perform statistics across rows. It accepts wildcards for the columns on which to operate, so it will handle varying numbers of columns provided they are matched by the same wildcard sequence.

--Michael

Post Reply