| Modifier and Type | Class and Description |
|---|---|
static class |
Settings.Field
This is set of fields for input/output to XML and JSON format
|
| Modifier | Constructor and Description |
|---|---|
protected |
Settings(Model model) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(org.json.JSONObject jsonSettings)
Applies Model settings from JSON.
|
double |
getConvergence()
Gets simulation entropy error convergence threshold.
|
int |
getIterations()
Returns maximum number of iterations during model calculation.
|
int |
getSampleSize()
Gets ranked node sample size.
|
double |
getTolerance()
Gets simulation evidence tolerance percent.
|
boolean |
isDiscretizeTails()
Checks whether tails are discretized during simulated calculation.
|
static void |
loadSettings(Model model,
org.json.JSONObject jsonSettings)
Utility method to load settings from the provided JSON to the provided Model.
For any missing fields, current model settings (or defaults) will be used. |
static void |
loadSettings(uk.co.agena.minerva.model.Model logicModel,
org.json.JSONObject jsonSettings)
Utility method to load settings from the provided JSON to the provided API1 Model.
For any missing fields, current model settings (or defaults) will be used. |
void |
setConvergence(double convergence)
Sets simulation entropy error convergence threshold
|
void |
setDiscretizeTails(boolean discretizeTails)
Sets whether tails are discretized during simulated calculation.
|
void |
setIterations(int iterations)
Sets maximum number of iterations during model calculation.
|
void |
setSampleSize(int sampleSize)
Sets ranked node sample size.
|
void |
setTolerance(double tolerance)
Sets simulation evidence tolerance percent.
|
org.json.JSONObject |
toJson()
Returns a JSON representation of the Model settings.
|
static org.json.JSONObject |
toJson(uk.co.agena.minerva.model.Model model)
Utility method to build a JSON equivalent of settings from the provided API1 model
|
protected Settings(Model model)
public static void loadSettings(Model model, org.json.JSONObject jsonSettings)
model - Model to load settings tojsonSettings - JSON to load settings frompublic static void loadSettings(uk.co.agena.minerva.model.Model logicModel,
org.json.JSONObject jsonSettings)
logicModel - API1 Model to load settings tojsonSettings - JSON to load settings frompublic static org.json.JSONObject toJson(uk.co.agena.minerva.model.Model model)
model - API1 modelpublic int getIterations()
public void setIterations(int iterations)
iterations - maximum number of iterations during model calculationpublic double getConvergence()
public void setConvergence(double convergence)
convergence - simulation entropy error convergence thresholdpublic double getTolerance()
public void setTolerance(double tolerance)
tolerance - simulation evidence tolerance percentpublic int getSampleSize()
public void setSampleSize(int sampleSize)
sampleSize - ranked node sample sizepublic boolean isDiscretizeTails()
public void setDiscretizeTails(boolean discretizeTails)
discretizeTails - whether tails are discretized during simulated calculationpublic org.json.JSONObject toJson()
public void fromJson(org.json.JSONObject jsonSettings)
jsonSettings - JSONObject equivalent of Model settingsCopyright © 2022. All rights reserved.