mpicbg.util
Class RealStreamPMCC

java.lang.Object
  extended by mpicbg.util.RealStreamPMCC

public class RealStreamPMCC
extends Object

Calculate the PMMC of a stream of double pairs by tracking the required sums. Uses RealSum for optimal precision.

Author:
Stephan Saalfeld

Field Summary
protected  long n
           
protected  RealSum sumX
           
protected  RealSum sumXX
           
protected  RealSum sumXY
           
protected  RealSum sumY
           
protected  RealSum sumYY
           
 
Constructor Summary
RealStreamPMCC()
           
 
Method Summary
 void add(double a, double b)
           
 double getMeanX()
           
 double getMeanY()
           
 long getN()
           
 double getPMCC()
           
 double getVarX()
           
 double getVarY()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sumX

protected final RealSum sumX

sumXX

protected final RealSum sumXX

sumY

protected final RealSum sumY

sumYY

protected final RealSum sumYY

sumXY

protected final RealSum sumXY

n

protected long n
Constructor Detail

RealStreamPMCC

public RealStreamPMCC()
Method Detail

getN

public long getN()

add

public void add(double a,
                double b)

getPMCC

public double getPMCC()

getMeanX

public double getMeanX()

getMeanY

public double getMeanY()

getVarX

public double getVarX()

getVarY

public double getVarY()


Copyright © 2007-2016 Fiji. All Rights Reserved.