net.sf.basedb.util.ma
Class Log2MACalculator
java.lang.Object
net.sf.basedb.util.ma.MACalculator
net.sf.basedb.util.ma.Log2MACalculator
public class Log2MACalculator
- extends MACalculator
MA calculator for log2-transformed spot intensity values.
- Since:
- 3.2.4
- Author:
- nicklas
Method Summary |
double[] |
correct(double ch1,
double ch2,
double factor)
ch1 = old - factor
ch2 = old + factor |
double[] |
MA(double ch1,
double ch2)
M = ch1 - ch2
A = (ch1 + ch2) / (2 * log2(10)) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INV_LOG2_10x2
static final double INV_LOG2_10x2
Log2MACalculator
public Log2MACalculator()
MA
public double[] MA(double ch1,
double ch2)
- M = ch1 - ch2
A = (ch1 + ch2) / (2 * log2(10))
- 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
ch2 = old + factor
- Overrides:
correct
in class MACalculator
- Returns:
- An array with [0] = newCh1, [1] = newCh2