Package edu.cmu.tetrad.search
Class GraphScore
java.lang.Object
edu.cmu.tetrad.search.GraphScore
- All Implemented Interfaces:
- Score
Implements Chickering and Meek's (2002) locally consistent score criterion.
- Author:
- Joseph Ramsey
- 
Constructor SummaryConstructorsConstructorDescriptionGraphScore(IndependenceFacts facts) GraphScore(Graph dag) Constructs the score using a covariance matrix.
- 
Method SummaryModifier and TypeMethodDescriptionbooleandetermines(List<Node> z, Node y) booleangetDag()getData()intintgetVariable(String name) booleanisDConnectedTo(Node x, Node y, List<Node> z) booleanisDSeparatedFrom(Node x, Node y, List<Node> z) booleanisEffectEdge(double bump) booleandoublelocalScore(int i) Specialized scoring method for no parents.doublelocalScore(int i, int parent) Specialized scoring method for a single parent.doublelocalScore(int y, int[] z) Calculates the sample likelihood and BIC score for y given its z in a simple SEM modeldoublelocalScoreDiff(int x, int y) doublelocalScoreDiff(int x, int y, int[] z) voidvoidvoidsetVerbose(boolean verbose) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.ScoredefaultScore, toString
- 
Constructor Details- 
GraphScoreConstructs the score using a covariance matrix.
- 
GraphScore
 
- 
- 
Method Details- 
localScorepublic double localScore(int y, int[] z) Calculates the sample likelihood and BIC score for y given its z in a simple SEM model- Specified by:
- localScorein interface- Score
- Parameters:
- y- The index of the node.
- z- The indices of the node's parents.
- Returns:
- The score, or NaN if the score cannot be calculated.
 
- 
localScoreDiffpublic double localScoreDiff(int x, int y, int[] z) - Specified by:
- localScoreDiffin interface- Score
 
- 
localScoreDiffpublic double localScoreDiff(int x, int y) - Specified by:
- localScoreDiffin interface- Score
 
- 
localScorepublic double localScore(int i, int parent) Specialized scoring method for a single parent. Used to speed up the effect edges search.- Specified by:
- localScorein interface- Score
 
- 
localScorepublic double localScore(int i) Specialized scoring method for no parents. Used to speed up the effect edges search.- Specified by:
- localScorein interface- Score
 
- 
isEffectEdgepublic boolean isEffectEdge(double bump) - Specified by:
- isEffectEdgein interface- Score
 
- 
getDataSet
- 
isVerbosepublic boolean isVerbose()
- 
setVerbosepublic void setVerbose(boolean verbose) 
- 
getVariables- Specified by:
- getVariablesin interface- Score
 
- 
getVariable- Specified by:
- getVariablein interface- Score
 
- 
getMaxDegreepublic int getMaxDegree()- Specified by:
- getMaxDegreein interface- Score
 
- 
determines- Specified by:
- determinesin interface- Score
 
- 
getData
- 
getSampleSizepublic int getSampleSize()- Specified by:
- getSampleSizein interface- Score
 
- 
getAlternativePenaltypublic boolean getAlternativePenalty()
- 
getDag
- 
isDSeparatedFrom
- 
isDConnectedTo
- 
setPrefix
- 
setN
 
-