Package net.sf.basedb.util.ma
Class Log10MACalculator
java.lang.Object
net.sf.basedb.util.ma.MACalculator
net.sf.basedb.util.ma.Log10MACalculator
MA calculator for log2-transformed spot intensity values.
- Since:
- 3.2.4
- Author:
- nicklas
-
Field Summary
Modifier and TypeFieldDescription(package private) static final double
(package private) static final double
Fields inherited from class net.sf.basedb.util.ma.MACalculator
INV_LN10x2, INV_LN2
-
Constructor Summary
-
Method Summary
-
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 classMACalculator
- 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 classMACalculator
- Returns:
- An array with [0] = newCh1, [1] = newCh2
-