Interface DataModel

All Superinterfaces:
KnowledgeTransferable, Serializable, TetradSerializable, VariableSource
All Known Subinterfaces:
DataSet, ICovarianceMatrix
All Known Implementing Classes:
BoxDataSet, CorrelationMatrix, CorrelationMatrixOnTheFly, CovarianceMatrix, CovarianceMatrixOnTheFly, DataModelList, IndependenceFacts, NumberObjectDataSet, TimeSeriesData

public interface DataModel extends KnowledgeTransferable, VariableSource

Interface implemented by classes, instantiations of which can serve as data models in Tetrad. Data models may be named if desired; if provided, these names will be used for display purposes.

This interface is relatively free of methods, mainly because classes that can serve as data models in Tetrad are diverse, including continuous and discrete data sets, covariance and correlation matrices, graphs, and lists of other data models. So this is primarily a taqging interface.

Version:
$Id: $Id
Author:
josephramsey
  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      Constant serialVersionUID=23L
      See Also:
  • Method Details

    • getName

      String getName()

      getName.

      Returns:
      the name of the data model (may be null).
    • setName

      void setName(String name)
      Sets the name of the data model (may be null).
      Parameters:
      name - the name to set
    • toString

      String toString()
      Renders the data model as as String.
      Overrides:
      toString in class Object
      Returns:
      a String object
    • isContinuous

      boolean isContinuous()

      isContinuous.

      Returns:
      true if the data model is continuous, false otherwise.
    • isDiscrete

      boolean isDiscrete()

      isDiscrete.

      Returns:
      true if the data model is discrete, false otherwise.
    • isMixed

      boolean isMixed()

      isMixed.

      Returns:
      true if the data model is mixed continuous/discrete, false otherwise.
    • getVariable

      Node getVariable(String name)

      getVariable.

      Parameters:
      name - a String object
      Returns:
      the variable with the given name, or null if no such variable exists.
    • copy

      DataModel copy()

      copy.

      Returns:
      a copy of the data model.