Class LeeHastieSimulation
java.lang.Object
edu.cmu.tetrad.algcomparison.simulation.LeeHastieSimulation
- All Implemented Interfaces:
Simulation,HasParameters,TetradSerializable,Serializable
A version of the Lee and Hastic simulation which is guaranteed ot generate a
discrete data set.
- Author:
- jdramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateData(Parameters parameters, boolean newModel) Creates a data set and simulates data.getDataModel(int index) intgetTrueGraph(int index)
-
Constructor Details
-
LeeHastieSimulation
-
-
Method Details
-
createData
Description copied from interface:SimulationCreates a data set and simulates data.- Specified by:
createDatain interfaceSimulation
-
getTrueGraph
- Specified by:
getTrueGraphin interfaceSimulation- Parameters:
index- The index of the desired true graph.- Returns:
- That graph.
-
getDataModel
- Specified by:
getDataModelin interfaceSimulation- Parameters:
index- The index of the desired simulated data set.- Returns:
- That data set.
-
getDescription
- Specified by:
getDescriptionin interfaceSimulation- Returns:
- Returns a one-line description of the simulation, to be printed at the beginning of the report.
-
getParameters
- Specified by:
getParametersin interfaceHasParameters- Specified by:
getParametersin interfaceSimulation- Returns:
- Returns the parameters used in the simulation. These are the parameters whose values can be varied.
-
getNumDataModels
public int getNumDataModels()- Specified by:
getNumDataModelsin interfaceSimulation- Returns:
- The number of data sets to simulate.
-
getDataType
- Specified by:
getDataTypein interfaceSimulation- Returns:
- Returns the type of the data, continuous, discrete or mixed.
-