public class ReacAnalysisResult extends AnalysisResult
Modifier and Type | Class and Description |
---|---|
private class |
ReacAnalysisResult.MyRenderer
Class used to set the right colors and sized for the plot.
|
Modifier and Type | Field and Description |
---|---|
static java.awt.Color[] |
COLORLIST |
private PhenotypicPhaseComparator |
comparator
Comparator between phenotype phases.
|
(package private) double |
deltaF
Parameters of the varying variable.
|
(package private) double |
end
Parameters of the varying variable.
|
private java.util.Map<java.lang.Double,java.util.List<java.lang.Double>> |
expValues
Experimental values.
|
private java.util.List<java.lang.Double> |
fluxValues
All flux values.
|
private java.util.Map<java.lang.Double,java.lang.Integer> |
groupIndex
Map to get the group index of a shadow-price value.
|
(package private) double |
init
Parameters of the varying variable.
|
(package private) int |
minGrpsSize
Minimal group size to consider it is a phenotype phase.
|
private java.lang.String |
objName |
private java.util.Map<java.lang.Double,java.lang.Integer> |
pointIndex
Map to get the group index of a point.
|
private java.lang.String |
reacName |
private java.util.Map<java.lang.Double,java.lang.Double> |
resultValues
results.
|
private double |
score |
private java.util.Map<java.lang.Double,java.util.List<java.lang.Double>> |
shadowPriceGroups
phenotype phases sorted by shadow-price value.
|
Constructor and Description |
---|
ReacAnalysisResult(java.lang.String objName,
java.lang.String reacName,
java.util.List<java.lang.Double> fluxValues,
java.util.Map<java.lang.Double,java.lang.Double> resultValues,
int minGrpsSize,
double init,
double end,
double deltaF) |
Modifier and Type | Method and Description |
---|---|
void |
addExpValue(double a,
double b)
Adds an experimental value.
|
void |
addValue(double value,
double res)
Adds a value to the results.
|
void |
calculateScore()
Adds up all the distance of the experimental values to the calculated
line.
|
java.util.Map<java.lang.Double,java.lang.Integer> |
getGroupIndex() |
double |
getScore() |
java.util.Map<java.lang.Double,java.util.List<java.lang.Double>> |
getShadowPriceGroups() |
void |
normalizeValues(double xLB,
double xUB,
boolean invertX,
double yLB,
double yUB,
boolean invertY)
Normalizes the values.
|
void |
plot()
Plots the results.
|
void |
setComparator(PhenotypicPhaseComparator comparator) |
void |
setShadowPriceGroups(java.util.Map<java.lang.Double,java.util.List<java.lang.Double>> shadowPriceGroups)
Orders the phenotype phases.
|
void |
writeToFile(java.lang.String path)
Writes the results to a file.
|
int minGrpsSize
double init
double end
double deltaF
public static final java.awt.Color[] COLORLIST
private java.util.Map<java.lang.Double,java.lang.Double> resultValues
private java.util.List<java.lang.Double> fluxValues
private java.lang.String reacName
private java.lang.String objName
private java.util.Map<java.lang.Double,java.util.List<java.lang.Double>> shadowPriceGroups
private java.util.Map<java.lang.Double,java.lang.Integer> pointIndex
private java.util.Map<java.lang.Double,java.lang.Integer> groupIndex
private PhenotypicPhaseComparator comparator
private java.util.Map<java.lang.Double,java.util.List<java.lang.Double>> expValues
private double score
public ReacAnalysisResult(java.lang.String objName, java.lang.String reacName, java.util.List<java.lang.Double> fluxValues, java.util.Map<java.lang.Double,java.lang.Double> resultValues, int minGrpsSize, double init, double end, double deltaF)
public void setShadowPriceGroups(java.util.Map<java.lang.Double,java.util.List<java.lang.Double>> shadowPriceGroups)
public java.util.Map<java.lang.Double,java.util.List<java.lang.Double>> getShadowPriceGroups()
public java.util.Map<java.lang.Double,java.lang.Integer> getGroupIndex()
public void setComparator(PhenotypicPhaseComparator comparator)
public void writeToFile(java.lang.String path)
AnalysisResult
writeToFile
in class AnalysisResult
path
- Path to the file to write the results.public void plot()
AnalysisResult
plot
in class AnalysisResult
public void addValue(double value, double res)
value
- The flux value.res
- The objective value.public void normalizeValues(double xLB, double xUB, boolean invertX, double yLB, double yUB, boolean invertY)
xLB
- Lower bound of X.xUB
- Upper bound of X.invertX
- True if X is minimized in the objective.yLB
- Lower bound of Y.yUB
- Upper bound of Y.invertY
- True if Y is minimized in the objective.public void addExpValue(double a, double b)
a
- The experimental value for X.b
- The experimental value for Y.public void calculateScore()
public double getScore()