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 TypeMethodDescriptionvoidintgetName()intgetSelection(int[] rows, int[] cols) intgetSize()getSubmatrix(int[] indices) getSubmatrix(String[] submatrixVarNames) getSubmatrix(List<String> submatrixVarNames) doublegetValue(int i, int j) getVariable(String name) getVariableName(int index) Returns the variable names associated with this getVariableNames.Returns the list of variables associated with this object.booleanisSelected(Node variable) voidremoveVariables(List<String> remaining) voidvoidsetKnowledge(Knowledge knowledge) Sets knowledge to a copy of the given object.voidvoidSets the name of the data model (may be null).voidsetSampleSize(int sampleSize) voidsetValue(int i, int j, double v) voidsetVariables(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
Description copied from interface:VariableSourceReturns the list of variables associated with this object.- Specified by:
getVariablesin interfaceVariableSource- Returns:
- the list of variables associated with this object.
-
setVariables
-
getVariableNames
Description copied from interface:VariableSourceReturns the variable names associated with this getVariableNames.- Specified by:
getVariableNamesin 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:DataModelSets the name of the data model (may be null). -
getKnowledge
Knowledge getKnowledge()- Specified by:
getKnowledgein interfaceKnowledgeTransferable- Returns:
- a copy of the knowledge for this class.
-
setKnowledge
Description copied from interface:KnowledgeTransferableSets knowledge to a copy of the given object.- Specified by:
setKnowledgein 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:DataModelRenders the data model as as String. -
getVariable
- Specified by:
getVariablein interfaceDataModel
-
setValue
void setValue(int i, int j, double v) -
removeVariables
-
getSelection
-