opal AT lists.psi.ch
Subject: The OPAL Discussion Forum
List archive
- From: Nicole Neveu <nneveu AT hawk.iit.edu>
- To: "Adelmann Andreas (PSI)" <andreas.adelmann AT psi.ch>, opal <opal AT lists.psi.ch>
- Subject: Re: [Opal] Correlation term
- Date: Tue, 1 Nov 2016 11:22:00 -0500
Thanks Andreas, that was really helpful too.
Nicole
On Tue, Nov 1, 2016 at 10:34 AM, Adelmann Andreas (PSI) <andreas.adelmann AT psi.ch> wrote:
You can find the code at http://amas.web.psi.ch/docs/opal/html/d7/d7e/a00709_source.html#l01899
A
------
Dr. sc. math. Andreas (Andy) Adelmann
Staff Scientist
Paul Scherrer Institut WBBA/219 CH-5232 Villigen PSI
Phone Office: xx41 56 310 42 33 Fax: xx41 56 310 31 91
Phone Home: xx41 62 891 91 44
-------------------------------------------------------
Friday: ETH CAB F37 +41 44 632 75 22
============================================
The more exotic, the more abstract the knowledge,
the more profound will be its consequences.
Leon Lederman
============================================
On 31 Oct 2016, at 20:50, Nicole Neveu <nneveu AT hawk.iit.edu> wrote:
Hi OPAL'ers,
What is the equation for xpx (column 21) in the stat file?When I calculate xrms and pxrms, (using the h5 file and math definitions), the numbers match exactly.I thought the calculation would be similar for the correlation term. Something like:
correlation = ( (np.sum(x*px)/npt) - (np.sum(x)/npt)*(np.sum(px)/npt) )
However, when I do this calculation, it does not match the xpx value listed in the stat file.Do I need to divide by xrms? What part of the equation am I missing?
Thanks!
Nicole
- Re: [Opal] Correlation term, christof kraus, 11/01/2016
- Re: [Opal] Correlation term, Nicole Neveu, 11/01/2016
- <Possible follow-up(s)>
- Re: [Opal] Correlation term, Adelmann Andreas (PSI), 11/01/2016
- Re: [Opal] Correlation term, Nicole Neveu, 11/01/2016
Archive powered by MHonArc 2.6.19.