Class LoadContinuousDataAndSingleGraph

java.lang.Object
edu.cmu.tetrad.data.simulation.LoadContinuousDataAndSingleGraph
All Implemented Interfaces:
Simulation, HasParameters, HasParameterValues, TetradSerializable, Serializable

@Experimental public class LoadContinuousDataAndSingleGraph extends Object implements Simulation, HasParameterValues
Load data sets and graphs from a directory.
Version:
$Id: $Id
Author:
josephramsey
See Also:
  • Constructor Details

    • LoadContinuousDataAndSingleGraph

      public LoadContinuousDataAndSingleGraph(String path)

      Constructor for LoadContinuousDataAndSingleGraph.

      Parameters:
      path - a String object
  • Method Details

    • createData

      public void createData(Parameters parameters, boolean newModel)
      Creates a data set and simulates data.
      Specified by:
      createData in 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.
    • getTrueGraph

      public Graph getTrueGraph(int index)
      Returns the true graph at the given index.
      Specified by:
      getTrueGraph in interface Simulation
      Parameters:
      index - The index of the desired true graph.
      Returns:
      That graph.
    • getDataModel

      public DataModel getDataModel(int index)
      Returns the number of data sets to simulate.
      Specified by:
      getDataModel in interface Simulation
      Parameters:
      index - The index of the desired simulated data set.
      Returns:
      That data set.
    • getDescription

      public String getDescription()

      getDescription.

      Specified by:
      getDescription in interface Simulation
      Returns:
      a String object
    • getParameters

      public List<String> getParameters()
      Returns the list of parameters used in the simulation.
      Specified by:
      getParameters in interface HasParameters
      Specified by:
      getParameters in interface Simulation
      Returns:
      Returns the parameters used in the simulation. These are the parameters whose values can be varied.
    • getRandomGraphClass

      public Class<? extends RandomGraph> getRandomGraphClass()
      Description copied from interface: Simulation
      Retrieves the class of a random graph for the simulation.
      Specified by:
      getRandomGraphClass in interface Simulation
      Returns:
      The class of a random graph for the simulation.
    • getSimulationClass

      public Class<? extends Simulation> getSimulationClass()
      Description copied from interface: Simulation
      Returns 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:
      getSimulationClass in interface Simulation
      Returns:
      The class of the simulation.
    • getNumDataModels

      public int getNumDataModels()
      Returns the number of data models.
      Specified by:
      getNumDataModels in interface Simulation
      Returns:
      The number of data sets to simulate.
    • getDataType

      public DataType getDataType()
      Returns the data type of the data.
      Specified by:
      getDataType in interface Simulation
      Returns:
      Returns the type of the data, continuous, discrete or mixed.
    • getParameterValues

      public Parameters getParameterValues()

      getParameterValues.

      Specified by:
      getParameterValues in interface HasParameterValues
      Returns:
      Returns a list of additional parameter values.