Package edu.cmu.tetrad.data
Interface ICovarianceMatrix
- All Superinterfaces:
DataModel
,KnowledgeTransferable
,Serializable
,TetradSerializable
,VariableSource
- All Known Implementing Classes:
CorrelationMatrix
,CorrelationMatrixOnTheFly
,CovarianceMatrix
,CovarianceMatrixOnTheFly
Interface for covariance matrices. Implemented in different ways. See implementations.
-
Field Summary
Fields inherited from interface edu.cmu.tetrad.data.DataModel
serialVersionUID
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
getName()
int
getSelection
(int[] rows, int[] cols) int
getSize()
getSubmatrix
(int[] indices) getSubmatrix
(String[] submatrixVarNames) getSubmatrix
(List<String> submatrixVarNames) double
getValue
(int i, int j) getVariable
(String name) getVariableName
(int index) boolean
isSelected
(Node variable) void
removeVariables
(List<String> remaining) void
void
setKnowledge
(Knowledge knowledge) Sets knowledge to a copy of the given object.void
void
Sets the name of the data model (may be null).void
setSampleSize
(int sampleSize) void
setValue
(int i, int j, double v) void
setVariables
(List<Node> variables) toString()
Renders the data model as as String.Methods inherited from interface edu.cmu.tetrad.data.DataModel
copy, isContinuous, isDiscrete, isMixed
-
Method Details
-
getVariables
- Specified by:
getVariables
in interfaceVariableSource
- Returns:
- the list of variables associated with this object.
-
setVariables
-
getVariableNames
- Specified by:
getVariableNames
in interfaceVariableSource
- Returns:
- the variable names associated with this getVariableNames.
-
getVariableName
-
getDimension
int getDimension() -
getSampleSize
int getSampleSize() -
setSampleSize
void setSampleSize(int sampleSize) -
getName
String getName() -
setName
Description copied from interface:DataModel
Sets the name of the data model (may be null). -
getKnowledge
Knowledge getKnowledge()- Specified by:
getKnowledge
in interfaceKnowledgeTransferable
- Returns:
- a copy of the knowledge for this class.
-
setKnowledge
Description copied from interface:KnowledgeTransferable
Sets knowledge to a copy of the given object.- Specified by:
setKnowledge
in interfaceKnowledgeTransferable
-
getSubmatrix
-
getSubmatrix
-
getSubmatrix
-
getValue
double getValue(int i, int j) -
getSize
int getSize() -
getMatrix
Matrix getMatrix() -
setMatrix
-
select
-
clearSelection
void clearSelection() -
isSelected
-
getSelectedVariableNames
-
toString
String toString()Description copied from interface:DataModel
Renders the data model as as String. -
getVariable
- Specified by:
getVariable
in interfaceDataModel
-
setValue
void setValue(int i, int j, double v) -
removeVariables
-
getSelection
-