Skip to Content.
Sympa Menu

opal - Re: [Opal] Correlation term

opal AT

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] Correlation term

Chronological Thread 
  • From: Nicole Neveu <nneveu AT>
  • To: "Adelmann Andreas (PSI)" <andreas.adelmann AT>, opal <opal AT>
  • Subject: Re: [Opal] Correlation term
  • Date: Tue, 1 Nov 2016 11:22:00 -0500

Thanks Andreas, that was really helpful too. 


On Tue, Nov 1, 2016 at 10:34 AM, Adelmann Andreas (PSI) <andreas.adelmann AT> wrote:
You can find the code at


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> 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? 



Archive powered by MHonArc 2.6.19.

Top of Page