Package edu.cmu.tetrad.search.score
Interface Score
- All Known Subinterfaces:
DiscreteScore
,HasPenaltyDiscount
- All Known Implementing Classes:
BasisFunctionBicScore
,BdeScore
,BdeuScore
,ConditionalGaussianScore
,DegenerateGaussianScore
,DiscreteBicScore
,DiscreteBicScoreAdTree
,EbicScore
,GicScores
,GraphScore
,ImagesScore
,IndTestScore
,MagCgBicScore
,MagDgBicScore
,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.
- Version:
- $Id: $Id
- Author:
- josephramsey
-
Method Summary
Modifier and TypeMethodDescriptiondefault int[]
append
(int[] parents, int extra) Appends an extra int to a list of ints.default boolean
determines
(List<Node> z, Node y) Returns true iff the score determines the edge between x and y.default int
Returns the max degree, by default 1000.int
The sample size of the data.default Node
getVariable
(String targetName) Returns the variable with the given name.The variables of the score.default boolean
isEffectEdge
(double bump) Returns true iff the edge between x and y is an effect edge.default double
localScore
(int node) Returns the local score of the gien node in the graph.default double
localScore
(int node, int parent) Returns the local score of the graph.double
localScore
(int node, int... parents) The score of a node given its parents.default double
localScoreDiff
(int x, int y) Returns the local score difference of the graph.default double
localScoreDiff
(int x, int y, int[] z) Returns the score difference of the graph.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
-
getSampleSize
int getSampleSize()The sample size of the data.- Returns:
- This size.
-
toString
-
localScoreDiff
Returns the score difference of the graph.- Parameters:
x
- A node.y
- TAhe node.z
- A set of nodes.- Returns:
- The score difference.
- Throws:
InterruptedException
-
append
default int[] append(int[] parents, int extra) Appends an extra int to a list of ints.- Parameters:
parents
- The list of ints.extra
- The extra int.- Returns:
- The new list of ints.
-
localScoreDiff
default double localScoreDiff(int x, int y) Returns the local score difference of the graph.- Parameters:
x
- A node.y
- The node.- Returns:
- The local score difference.
-
localScore
default double localScore(int node, int parent) Returns the local score of the graph.- Parameters:
node
- A node.parent
- A parent.- Returns:
- The local score.
-
localScore
default double localScore(int node) Returns the local score of the gien node in the graph.- Parameters:
node
- A node.- Returns:
- The local score.
-
getVariable
-
isEffectEdge
default boolean isEffectEdge(double bump) Returns true iff the edge between x and y is an effect edge.- Parameters:
bump
- The bump.- Returns:
- True iff the edge between x and y is an effect edge.
-
getMaxDegree
default int getMaxDegree()Returns the max degree, by default 1000.- Returns:
- The max degree.
-
determines
-