Package net.sf.basedb.util.ma
Class Log2MACalculator
java.lang.Object
net.sf.basedb.util.ma.MACalculator
net.sf.basedb.util.ma.Log2MACalculator
MA calculator for log2-transformed spot intensity values.
- Since:
- 3.2.4
- Author:
- nicklas
-
Field Summary
Fields inherited from class net.sf.basedb.util.ma.MACalculator
INV_LN10x2, INV_LN2
-
Constructor Summary
-
Method Summary
-
Field Details
-
INV_LOG2_10x2
static final double INV_LOG2_10x2
-
-
Constructor Details
-
Log2MACalculator
public Log2MACalculator()
-
-
Method Details
-
MA
public double[] MA(double ch1, double ch2) M = ch1 - ch2 A = (ch1 + ch2) / (2 * log2(10))- Overrides:
MA
in classMACalculator
- Returns:
- An array with [0] = M, [1] = A
-
correct
public double[] correct(double ch1, double ch2, double factor) ch1 = old - factor ch2 = old + factor- Overrides:
correct
in classMACalculator
- Returns:
- An array with [0] = newCh1, [1] = newCh2
-