Class AbstractSensitivityAnalysis
java.lang.Object
fr.ifremer.isisfish.simulator.sensitivity.AbstractSensitivityAnalysis
- All Implemented Interfaces:
SensitivityAnalysis
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkAllFactorContinuous
(List<Factor> factors) Test que tous les facteurs sont continues.protected void
checkAllUniformDistribution
(List<Factor> factors) Test que tous les facteurs sont continues.protected void
closeEngine
(org.nuiton.j2r.REngine engine, File outputDirectory) Save RData file and close Rengine.protected String
createImportInstruction
(SensitivityExport export, List<SimulationStorage> simulationStorages) Cree l'instruction R qui permet de relire le contenu d'un fichier genere par un Export Isis.protected String
editRInstruction
(String rCall) Affiche une boite de dialogue modale permettant de modifier l'expression R.protected double
Get factor domain bound depending on distribution.protected String
getIsisFactorDistribution
(List<Factor> factors) protected double
getMaxBound
(Factor factor) Get factor domain max bound depending on distribution.protected double
getMinBound
(Factor factor) Get factor domain min bound depending on distribution.protected org.nuiton.j2r.REngine
openEngine
(File outputDirectory) Open R engine and load RData file.void
setIsisFactorsR
(DesignPlan plan, File outputdirectory) Method to create the isis.factors dataframe in R.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface fr.ifremer.isisfish.simulator.sensitivity.SensitivityAnalysis
analyzeResult, canManageCardinality, compute, getDescription
-
Constructor Details
-
AbstractSensitivityAnalysis
public AbstractSensitivityAnalysis()
-
-
Method Details
-
setIsisFactorsR
Method to create the isis.factors dataframe in R.- Parameters:
plan
- Design plan of the sensitivity analysisoutputdirectory
- the directory on which we will calculate the destination RData file. The RData file will be named directory.RData and saved in the directory parent.- Throws:
SensitivityException
- if an error occur while talking to R
-
openEngine
Open R engine and load RData file.- Parameters:
outputDirectory
- save directory- Returns:
- rengine
- Throws:
org.nuiton.j2r.RException
-
closeEngine
protected void closeEngine(org.nuiton.j2r.REngine engine, File outputDirectory) throws org.nuiton.j2r.RException Save RData file and close Rengine.- Parameters:
engine
- r engineoutputDirectory
- save directory- Throws:
org.nuiton.j2r.RException
-
editRInstruction
Affiche une boite de dialogue modale permettant de modifier l'expression R.- Parameters:
rCall
- r instruction to edit- Returns:
- user edited r instruction
-
checkAllFactorContinuous
Test que tous les facteurs sont continues. Leve une exception si un facteur discret est présent.- Parameters:
factors
- factor list to check- Throws:
SensitivityException
-
checkAllUniformDistribution
Test que tous les facteurs sont continues. Leve une exception si un facteur discret est présent.- Parameters:
factors
- factor list to check- Throws:
SensitivityException
-
createImportInstruction
protected String createImportInstruction(SensitivityExport export, List<SimulationStorage> simulationStorages) Cree l'instruction R qui permet de relire le contenu d'un fichier genere par un Export Isis.- Parameters:
export
- export to get filename to readsimulationStorages
- simulation list to read export- Returns:
- r instruction
-
getMinBound
Get factor domain min bound depending on distribution. -
getMaxBound
Get factor domain max bound depending on distribution. -
getBound
Get factor domain bound depending on distribution.- Parameters:
min
- min or max
-
getIsisFactorDistribution
-