Class Log10MACalculator

java.lang.Object
net.sf.basedb.util.ma.MACalculator
net.sf.basedb.util.ma.Log10MACalculator

public class Log10MACalculator
extends MACalculator
MA calculator for log2-transformed spot intensity values.
Since:
3.2.4
Author:
nicklas
  • Field Summary

    Fields
    Modifier and Type Field Description
    (package private) static double INV_LOG10_2  
    (package private) static double LOG10_2  

    Fields inherited from class net.sf.basedb.util.ma.MACalculator

    INV_LN10x2, INV_LN2
  • Constructor Summary

    Constructors
    Constructor Description
    Log10MACalculator()  
  • Method Summary

    Modifier and Type Method Description
    double[] correct​(double ch1, double ch2, double factor)
    ch1 = old - factor * log10(2) ch2 = old + factor * log10(2)
    double[] MA​(double ch1, double ch2)
    M = (ch1 - ch2) / log10(2) A = (ch1 + ch2) / 2

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG10_2

      static final double LOG10_2
    • INV_LOG10_2

      static final double INV_LOG10_2
  • Constructor Details

    • Log10MACalculator

      public Log10MACalculator()
  • Method Details

    • MA

      public double[] MA​(double ch1, double ch2)
      M = (ch1 - ch2) / log10(2) A = (ch1 + ch2) / 2
      Overrides:
      MA in class MACalculator
      Returns:
      An array with [0] = M, [1] = A
    • correct

      public double[] correct​(double ch1, double ch2, double factor)
      ch1 = old - factor * log10(2) ch2 = old + factor * log10(2)
      Overrides:
      correct in class MACalculator
      Returns:
      An array with [0] = newCh1, [1] = newCh2