public class TwoReacsAnalysisResult extends AnalysisResult
Modifier and Type | Class and Description |
---|---|
class |
TwoReacsAnalysisResult.MyPlot
Class to create a personalized grid 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 variables.
|
(package private) double |
deltaF2
Parameters of the varying variables.
|
(package private) double |
end
Parameters of the varying variables.
|
(package private) double |
end2
Parameters of the varying variables.
|
private java.util.Map<java.lang.Double,java.util.List<double[]>> |
expValues
Experimental values.
|
(package 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 variables.
|
(package private) double |
init2
Parameters of the varying variables.
|
(package private) int |
minGrpsSize
Minimal group size to consider it is a phenotype phase.
|
private java.lang.String |
objName |
(package private) java.util.Map<double[],java.lang.Integer> |
pointIndex
Map to get the group index of a point.
|
private java.lang.String |
reacName |
private java.lang.String |
reacName2 |
private java.util.List<double[]> |
results
Each double[] is a point x,y,z with x : reac1 flux value, y = reac2 flux
value and z = objective value.
|
private double |
score |
(package private) java.util.Map<java.lang.Double,java.util.List<double[]>> |
shadowPriceGroups
phenotype phases sorted by shadow-price value.
|
Constructor and Description |
---|
TwoReacsAnalysisResult(java.lang.String objName,
java.lang.String reacName,
java.lang.String reacName2,
int minGrpsSize,
double init,
double end,
double deltaF,
double init2,
double end2,
double deltaF2) |
Modifier and Type | Method and Description |
---|---|
void |
addExpValue(double val1,
double val2,
double val3)
Adds an experimental value.
|
void |
addValue(double[] value) |
void |
calculateScore()
Adds up all the distance of the experimental values to the calculated
surface.
|
void |
drawGridPlot(org.math.plot.Plot3DPanel plot,
java.lang.String name,
double[] x,
double[] y,
double[] z)
Draws a 3D Grid plot
|
java.util.Map<java.lang.Double,java.lang.Integer> |
getGroupIndex() |
protected java.awt.Color |
getNewColor(org.math.plot.canvas.PlotCanvas plotCanvas) |
java.lang.Double |
getScore()
Adds up all the distance of the experimental values to the calculated
line.
|
java.util.Map<java.lang.Double,java.util.List<double[]>> |
getShadowPriceGroups() |
void |
normalizeValues(double xLB,
double xUB,
boolean invertX,
double yLB,
double yUB,
boolean invertY,
double zLB,
double zUB,
boolean invertZ)
Normalizes the values.
|
void |
plot()
Plots the results.
|
void |
savePng(org.math.plot.Plot3DPanel panel,
java.io.File file)
Save the plot as a PBG image file.
|
void |
setComparator(PhenotypicPhaseComparator comparator) |
void |
setShadowPriceGroups(java.util.Map<java.lang.Double,java.util.List<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
double init2
double end2
double deltaF2
public static final java.awt.Color[] COLORLIST
private java.lang.String reacName
private java.lang.String reacName2
private java.lang.String objName
private java.util.List<double[]> results
java.util.Map<java.lang.Double,java.util.List<double[]>> shadowPriceGroups
private PhenotypicPhaseComparator comparator
java.util.Map<double[],java.lang.Integer> pointIndex
java.util.Map<java.lang.Double,java.lang.Integer> groupIndex
private java.util.Map<java.lang.Double,java.util.List<double[]>> expValues
private double score
public TwoReacsAnalysisResult(java.lang.String objName, java.lang.String reacName, java.lang.String reacName2, int minGrpsSize, double init, double end, double deltaF, double init2, double end2, double deltaF2)
public void addValue(double[] value)
value
- public void normalizeValues(double xLB, double xUB, boolean invertX, double yLB, double yUB, boolean invertY, double zLB, double zUB, boolean invertZ)
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.zLB
- Lower bound of Z.zUB
- Upper bound of Z.invertZ
- True if Z is minimized in the objective.public void setShadowPriceGroups(java.util.Map<java.lang.Double,java.util.List<double[]>> shadowPriceGroups)
public java.util.Map<java.lang.Double,java.util.List<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 savePng(org.math.plot.Plot3DPanel panel, java.io.File file)
panel
- panel to save.file
- Path to the file to write.public void drawGridPlot(org.math.plot.Plot3DPanel plot, java.lang.String name, double[] x, double[] y, double[] z)
plot
- plot to add the grid plot to.name
- Name of the plot.x
- X values.y
- Y values.z
- Z values.protected java.awt.Color getNewColor(org.math.plot.canvas.PlotCanvas plotCanvas)
public void addExpValue(double val1, double val2, double val3)
val1
- The experimental value for X.val2
- The experimental value for Y.val3
- The experimental value for Z.public void calculateScore()
public java.lang.Double getScore()