Class LoadDataFromFileWithoutGraph

java.lang.Object
edu.cmu.tetrad.data.simulation.LoadDataFromFileWithoutGraph
All Implemented Interfaces:
Simulation, SimulationPath, HasParameters, ParameterValues, TetradSerializable, Serializable

public class LoadDataFromFileWithoutGraph extends Object implements Simulation, SimulationPath, ParameterValues
Load data sets and graphs from a directory.
Author:
josephramsey
See Also:
  • Constructor Details

    • LoadDataFromFileWithoutGraph

      public LoadDataFromFileWithoutGraph(String path)
  • Method Details

    • createData

      public void createData(Parameters parameters, boolean newModel)
      Description copied from interface: Simulation
      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)
      Description copied from interface: Simulation
      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)
      Description copied from interface: Simulation
      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()
      Description copied from interface: Simulation
      Returns the description of the simulation.
      Specified by:
      getDescription in interface Simulation
      Returns:
      Returns a one-line description of the simulation, to be printed at the beginning of the report.
    • getParameters

      public List<String> getParameters()
      Description copied from interface: Simulation
      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.
    • getNumDataModels

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

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

      public String getPath()
      Specified by:
      getPath in interface SimulationPath
    • parameterValues

      public Map<String,Object> parameterValues()
      Specified by:
      parameterValues in interface ParameterValues