Interface ICovarianceMatrix

All Superinterfaces:
DataModel, KnowledgeTransferable, Serializable, TetradSerializable, VariableSource
All Known Implementing Classes:
CorrelationMatrix, CorrelationMatrixOnTheFly, CovarianceMatrix, CovarianceMatrixOnTheFly

public interface ICovarianceMatrix extends DataModel
Interface for covariance matrices. Implemented in different ways. See implementations.
  • Method Details

    • getVariables

      List<Node> getVariables()
      Description copied from interface: VariableSource
      Returns the list of variables associated with this object.
      Specified by:
      getVariables in interface VariableSource
      Returns:
      the list of variables associated with this object.
    • setVariables

      void setVariables(List<Node> variables)
    • getVariableNames

      List<String> getVariableNames()
      Description copied from interface: VariableSource
      Returns the variable names associated with this getVariableNames.
      Specified by:
      getVariableNames in interface VariableSource
      Returns:
      the variable names associated with this getVariableNames.
    • getVariableName

      String getVariableName(int index)
    • getDimension

      int getDimension()
    • getSampleSize

      int getSampleSize()
    • setSampleSize

      void setSampleSize(int sampleSize)
    • getName

      String getName()
      Specified by:
      getName in interface DataModel
      Returns:
      the name of the data model (may be null).
    • setName

      void setName(String name)
      Description copied from interface: DataModel
      Sets the name of the data model (may be null).
      Specified by:
      setName in interface DataModel
    • getKnowledge

      Knowledge getKnowledge()
      Specified by:
      getKnowledge in interface KnowledgeTransferable
      Returns:
      a copy of the knowledge for this class.
    • setKnowledge

      void setKnowledge(Knowledge knowledge)
      Description copied from interface: KnowledgeTransferable
      Sets knowledge to a copy of the given object.
      Specified by:
      setKnowledge in interface KnowledgeTransferable
    • getSubmatrix

      ICovarianceMatrix getSubmatrix(int[] indices)
    • getSubmatrix

      ICovarianceMatrix getSubmatrix(List<String> submatrixVarNames)
    • getSubmatrix

      ICovarianceMatrix getSubmatrix(String[] submatrixVarNames)
    • getValue

      double getValue(int i, int j)
    • getSize

      int getSize()
    • getMatrix

      Matrix getMatrix()
    • setMatrix

      void setMatrix(Matrix matrix)
    • select

      void select(Node variable)
    • clearSelection

      void clearSelection()
    • isSelected

      boolean isSelected(Node variable)
    • getSelectedVariableNames

      List<String> getSelectedVariableNames()
    • toString

      String toString()
      Description copied from interface: DataModel
      Renders the data model as as String.
      Specified by:
      toString in interface DataModel
      Overrides:
      toString in class Object
    • getVariable

      Node getVariable(String name)
      Specified by:
      getVariable in interface DataModel
    • setValue

      void setValue(int i, int j, double v)
    • removeVariables

      void removeVariables(List<String> remaining)
    • getSelection

      Matrix getSelection(int[] rows, int[] cols)