Interface Simulation
- All Superinterfaces:
HasParameters
,Serializable
,TetradSerializable
- All Known Implementing Classes:
BayesNetSimulation
,BooleanGlassSimulation
,ConditionalGaussianSimulation
,GeneralSemSimulation
,GeneralSemSimulationSpecial1
,LeeHastieSimulation
,LinearFisherModel
,LinearSineSimulation
,LoadContinuousDataAndGraphs
,LoadContinuousDataAndSingleGraph
,LoadContinuousDataSmithSim
,LoadDataAndGraphs
,LoadDataFromFileWithoutGraph
,NLSemSimulation
,SemSimulation
,SemThenDiscretize
,StandardizedSemSimulation
,TimeSeriesSemSimulation
The interface that simulations must implement.
- Author:
- josephramsey
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
createData
(Parameters parameters, boolean newModel) Creates a data set and simulates data.getDataModel
(int index) Returns the number of data sets to simulate.Returns the data type of the data.Returns the description of the simulation.int
Returns the number of data models.Returns the list of parameters used in the simulation.getTrueGraph
(int index) Returns the true graph at the given index.
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
-
Method Details
-
createData
Creates a data set and simulates data.- Parameters:
parameters
- The parameters to use in the simulation.newModel
- If true, a new model is created. If false, the model is reused.
-
getNumDataModels
int getNumDataModels()Returns the number of data models.- Returns:
- The number of data sets to simulate.
-
getTrueGraph
Returns the true graph at the given index.- Parameters:
index
- The index of the desired true graph.- Returns:
- That graph.
-
getDataModel
Returns the number of data sets to simulate.- Parameters:
index
- The index of the desired simulated data set.- Returns:
- That data set.
-
getDataType
DataType getDataType()Returns the data type of the data.- Returns:
- Returns the type of the data, continuous, discrete or mixed.
-
getDescription
String getDescription()Returns the description of the simulation.- Returns:
- Returns a one-line description of the simulation, to be printed at the beginning of the report.
-
getParameters
Returns the list of parameters used in the simulation.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- Returns the parameters used in the simulation. These are the parameters whose values can be varied.
-