Package edu.cmu.tetrad.data.simulation
Class LoadContinuousDataSmithSim
java.lang.Object
edu.cmu.tetrad.data.simulation.LoadContinuousDataSmithSim
- All Implemented Interfaces:
- Simulation,- HasParameters,- HasParameterValues,- TetradSerializable,- Serializable
@Experimental
public class LoadContinuousDataSmithSim
extends Object
implements Simulation, HasParameterValues
Load data sets and graphs from a directory.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor for LoadContinuousDataSmithSim.
- 
Method SummaryModifier and TypeMethodDescriptionvoidcreateData(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.getDescription.intReturns the number of data models.Returns the list of parameters used in the simulation.getParameterValues.Class<? extends RandomGraph> Retrieves the class of a random graph for the simulation.Class<? extends Simulation> Returns the class of the simulation.getTrueGraph(int index) Returns the true graph at the given index.readGraph.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.algcomparison.simulation.SimulationgetShortName
- 
Constructor Details- 
LoadContinuousDataSmithSimConstructor for LoadContinuousDataSmithSim. - Parameters:
- path- a- Stringobject
 
 
- 
- 
Method Details- 
createDataCreates a data set and simulates data.- Specified by:
- createDatain interface- Simulation
- Parameters:
- parameters- The parameters to use in the simulation.
- newModel- If true, a new model is created. If false, the model is reused.
 
- 
getTrueGraphReturns the true graph at the given index.- Specified by:
- getTrueGraphin interface- Simulation
- Parameters:
- index- The index of the desired true graph.
- Returns:
- That graph.
 
- 
getDataModelReturns the number of data sets to simulate.- Specified by:
- getDataModelin interface- Simulation
- Parameters:
- index- The index of the desired simulated data set.
- Returns:
- That data set.
 
- 
getDescriptiongetDescription. - Specified by:
- getDescriptionin interface- Simulation
- Returns:
- a Stringobject
 
- 
getParametersReturns the list of parameters used in the simulation.- Specified by:
- getParametersin interface- HasParameters
- Specified by:
- getParametersin interface- Simulation
- Returns:
- Returns the parameters used in the simulation. These are the parameters whose values can be varied.
 
- 
getRandomGraphClassDescription copied from interface:SimulationRetrieves the class of a random graph for the simulation.- Specified by:
- getRandomGraphClassin interface- Simulation
- Returns:
- The class of a random graph for the simulation.
 
- 
getSimulationClassDescription copied from interface:SimulationReturns the class of the simulation. This method is used to retrieve the class of a simulation based on the selected simulations in the model.- Specified by:
- getSimulationClassin interface- Simulation
- Returns:
- The class of the simulation.
 
- 
getNumDataModelspublic int getNumDataModels()Returns the number of data models.- Specified by:
- getNumDataModelsin interface- Simulation
- Returns:
- The number of data sets to simulate.
 
- 
getDataTypeReturns the data type of the data.- Specified by:
- getDataTypein interface- Simulation
- Returns:
- Returns the type of the data, continuous, discrete or mixed.
 
- 
getParameterValuesgetParameterValues. - Specified by:
- getParameterValuesin interface- HasParameterValues
- Returns:
- Returns a list of additional parameter values.
 
- 
readGraphreadGraph. 
 
-