public enum IntensityTransform extends Enum<IntensityTransform>
Enum Constant and Description |
---|
LOG10
Spot intensities are stored as base-10 logged values
|
LOG2
Spot intensities are stored as base-2 logged values
|
NONE
No transformation has been applied to the spot intensities.
|
Modifier and Type | Field and Description |
---|---|
private Formula.AverageMethod |
averageMethod |
private String |
displayValue
Returned by the toString method.
|
private boolean |
isTransformed
If the intensities are transformed or not.
|
private static double |
LN2 |
private int |
value
The integer value of this transform.
|
private static Map<Integer,IntensityTransform> |
valueMapping
Maps an integer to a transform.
|
Modifier and Type | Method and Description |
---|---|
static IntensityTransform |
fromValue(int value)
Get the
SpotDataTransform object when you know the integer code. |
Formula.AverageMethod |
getAverageMethod()
Get the averaging method to use when averaging values
that has been transformed with the specified transformation.
|
abstract MACalculator |
getMACalculator()
Get a MA calculator implementation that is suitable for calculating
MA-values for the given source data type.
|
int |
getValue()
Get the integer value that is used when storing a transform in the database.
|
boolean |
isTransformed()
Does this intensity transformation represents a transformation that
has modified the spot intensity values or not?
|
String |
toString() |
abstract double |
transform(double value)
Transform a "normal" intensity value to the transformed value.
|
abstract Expression |
transform(Expression e)
Transform an expression representing a "normal" intensity value
so that it represents the transformed intensity value.
|
abstract double |
unTransform(double transformed)
Un-transform a transformed intensity value back to a
regular intensity value.
|
abstract Expression |
unTransform(Expression transformed)
Un-transform an expression representing a transformed intensity
value so that it represents a raw intensity value.
|
static IntensityTransform |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IntensityTransform[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IntensityTransform NONE
public static final IntensityTransform LOG2
public static final IntensityTransform LOG10
private static final Map<Integer,IntensityTransform> valueMapping
private static final double LN2
private final int value
private final String displayValue
private final boolean isTransformed
private final Formula.AverageMethod averageMethod
public static IntensityTransform[] values()
for (IntensityTransform c : IntensityTransform.values()) System.out.println(c);
public static IntensityTransform valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<IntensityTransform>
public static IntensityTransform fromValue(int value)
SpotDataTransform
object when you know the integer code.value
- The integer value.public int getValue()
public boolean isTransformed()
public Formula.AverageMethod getAverageMethod()
public abstract Expression unTransform(Expression transformed)
transformed
- The transformed expressionpublic abstract double unTransform(double transformed)
transformed
- The transformed valuepublic abstract Expression transform(Expression e)
e
- The regular expressionpublic abstract double transform(double value)
value
- The regular valuepublic abstract MACalculator getMACalculator()