Package edu.cmu.tetrad.search.score
Interface Score
- All Known Subinterfaces:
DiscreteScore,HasPenaltyDiscount
- All Known Implementing Classes:
BdeScore,BdeuScore,ConditionalGaussianScore,DegenerateGaussianScore,DiscreteBicScore,EbicScore,GicScores,GraphScore,ImagesScore,IndTestScore,MagSemBicScore,MnlrScore,MvpScore,PoissonPriorScore,SemBicScore,SemBicScoreDeterministic,ZsbScore
public interface Score
Interface for a score. Most methods are given defaults so that such a score will be
easy to implement in Python usign JPype.
- Author:
- josephramsey
-
Method Summary
Modifier and TypeMethodDescriptiondefault int[]append(int[] parents, int extra) default booleandetermines(List<Node> z, Node y) default intintThe sample size of the data.default NodegetVariable(String targetName) The variables of the score.default booleanisEffectEdge(double bump) default doublelocalScore(int node) default doublelocalScore(int node, int parent) doublelocalScore(int node, int... parents) The score of a node given its parents.default doublelocalScoreDiff(int x, int y) default doublelocalScoreDiff(int x, int y, int[] z) toString()A string representation of the score.
-
Method Details
-
localScore
double localScore(int node, int... parents) The score of a node given its parents.- Parameters:
node- The node.parents- The parents.- Returns:
- The score.
-
getVariables
The variables of the score.- Returns:
- This list.
-
getSampleSize
int getSampleSize()The sample size of the data.- Returns:
- This size.
-
toString
String toString()A string representation of the score. -
localScoreDiff
default double localScoreDiff(int x, int y, int[] z) -
append
default int[] append(int[] parents, int extra) -
localScoreDiff
default double localScoreDiff(int x, int y) -
localScore
default double localScore(int node, int parent) -
localScore
default double localScore(int node) -
getVariable
-
isEffectEdge
default boolean isEffectEdge(double bump) -
getMaxDegree
default int getMaxDegree() -
determines
-