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.

Author:
josephramsey
  • Field Details

  • Method Details

    • getName

      String 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).
    • toString

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

      boolean isContinuous()
    • isDiscrete

      boolean isDiscrete()
    • isMixed

      boolean isMixed()
    • getVariable

      Node getVariable(String name)
    • copy

      DataModel copy()