All Implemented Interfaces:
Algorithm, ReturnsBootstrapGraphs, HasParameters, TetradSerializable, Serializable

MGM.
Version:
$Id: $Id
Author:
josephramsey
See Also:
  • Constructor Details

    • Mgm

      public Mgm()

      Constructor for Mgm.

  • Method Details

    • runSearch

      public Graph runSearch(DataModel dataModel, Parameters parameters)
      Runs the MGM search algorithm.
      Parameters:
      dataModel - The data model containing the dataset.
      parameters - The parameters for running the search.
      Returns:
      The graph obtained from the MGM search algorithm.
      Throws:
      IllegalArgumentException - If the data model does not contain tabular data, if the dataset is not mixed (contains at least one discrete column and at least one continuous column), or if missing values are present.
    • getComparisonGraph

      public Graph getComparisonGraph(Graph graph)
      Returns the comparison graph for the given true directed graph.
      Specified by:
      getComparisonGraph in interface Algorithm
      Parameters:
      graph - The true directed graph, if there is one.
      Returns:
      The comparison graph, an undirected version of the true directed graph.
    • getDescription

      public String getDescription()
      Returns a short, one-line description of this algorithm. This will be printed in the report.
      Specified by:
      getDescription in interface Algorithm
      Returns:
      The description of the algorithm.
    • getDataType

      public DataType getDataType()
      Retrieves the data type required by the search algorithm.
      Specified by:
      getDataType in interface Algorithm
      Returns:
      The data type required by the search algorithm.
    • getParameters

      public List<String> getParameters()
      Returns the list of parameters required by the getParameters method.
      Specified by:
      getParameters in interface HasParameters
      Returns:
      List of parameters as strings.