Class TimeSeriesSemSimulation
java.lang.Object
edu.cmu.tetrad.algcomparison.simulation.TimeSeriesSemSimulation
- All Implemented Interfaces:
Simulation
,HasKnowledge
,HasParameters
,TetradSerializable
,Serializable
Time series SEM simulation.
- Author:
- josephramsey, danielmalinsky
- See Also:
-
Constructor Summary
Constructors -
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.Returns a knowledge object.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.void
setKnowledge
(Knowledge knowledge) Sets a knowledge object.static void
topToBottomLayout
(TimeLagGraph graph)
-
Constructor Details
-
TimeSeriesSemSimulation
-
-
Method Details
-
topToBottomLayout
-
createData
Description copied from interface:Simulation
Creates a data set and simulates data.- Specified by:
createData
in interfaceSimulation
- Parameters:
parameters
- The parameters to use in the simulation.newModel
- If true, a new model is created. If false, the model is reused.
-
getDataModel
Description copied from interface:Simulation
Returns the number of data sets to simulate.- Specified by:
getDataModel
in interfaceSimulation
- Parameters:
index
- The index of the desired simulated data set.- Returns:
- That data set.
-
getTrueGraph
Description copied from interface:Simulation
Returns the true graph at the given index.- Specified by:
getTrueGraph
in interfaceSimulation
- Parameters:
index
- The index of the desired true graph.- Returns:
- That graph.
-
getDescription
Description copied from interface:Simulation
Returns the description of the simulation.- Specified by:
getDescription
in interfaceSimulation
- Returns:
- Returns a one-line description of the simulation, to be printed at the beginning of the report.
-
getParameters
Description copied from interface:Simulation
Returns the list of parameters used in the simulation.- Specified by:
getParameters
in interfaceHasParameters
- Specified by:
getParameters
in interfaceSimulation
- Returns:
- Returns the parameters used in the simulation. These are the parameters whose values can be varied.
-
getNumDataModels
public int getNumDataModels()Description copied from interface:Simulation
Returns the number of data models.- Specified by:
getNumDataModels
in interfaceSimulation
- Returns:
- The number of data sets to simulate.
-
getDataType
Description copied from interface:Simulation
Returns the data type of the data.- Specified by:
getDataType
in interfaceSimulation
- Returns:
- Returns the type of the data, continuous, discrete or mixed.
-
getKnowledge
Description copied from interface:HasKnowledge
Returns a knowledge object.- Specified by:
getKnowledge
in interfaceHasKnowledge
- Returns:
- a knowledge object.
-
setKnowledge
Description copied from interface:HasKnowledge
Sets a knowledge object.- Specified by:
setKnowledge
in interfaceHasKnowledge
- Parameters:
knowledge
- a knowledge object.
-