Class SemBicScoreDeterministic
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.SemBicScoreDeterministic
-
Constructor Summary
ConstructorsConstructorDescriptionSemBicScoreDeterministic
(ICovarianceMatrix covariances) Constructs the score using a covariance matrix. -
Method Summary
Modifier and TypeMethodDescriptionboolean
determines
(List<Node> z, Node y) Returns true iff the score determines the edge between x and y.Getter for the fieldcovariances
.getDataSet.double
Getter for the fielddeterminismThreshold
.int
Returns the max degree, by default 1000.double
Specialized scoring method for a single parent.int
Getter for the fieldsampleSize
.The variables of the score.boolean
isEffectEdge
(double bump) Returns true iff the edge between x and y is an effect edge.boolean
isVerbose.double
localScore
(int i, int... parents) Calculates the sample likelihood and BIC score for i given its parents in a simple SEM modeldouble
localScoreDiff
(int x, int y, int[] z) Returns the score difference of the graph.void
setDeterminismThreshold
(double determinismThreshold) Setter for the fielddeterminismThreshold
.void
setPenaltyDiscount
(double penaltyDiscount) Setter for the fieldpenaltyDiscount
.void
setVariables
(List<Node> variables) Setter for the fieldvariables
.void
setVerbose
(boolean verbose) Setter for the fieldverbose
.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.cmu.tetrad.search.score.Score
append, getVariable, localScore, localScore, localScoreDiff, toString
-
Constructor Details
-
SemBicScoreDeterministic
Constructs the score using a covariance matrix.- Parameters:
covariances
- aICovarianceMatrix
object
-
-
Method Details
-
localScore
public double localScore(int i, int... parents) Calculates the sample likelihood and BIC score for i given its parents in a simple SEM model- Specified by:
localScore
in interfaceScore
- Parameters:
i
- a intparents
- a int- Returns:
- a double
-
localScoreDiff
public double localScoreDiff(int x, int y, int[] z) Returns the score difference of the graph.- Specified by:
localScoreDiff
in interfaceScore
- Parameters:
x
- A node.y
- TAhe node.z
- A set of nodes.- Returns:
- The score difference.
-
getPenaltyDiscount
public double getPenaltyDiscount()Specialized scoring method for a single parent. Used to speed up the effect edges search.- Returns:
- a double
-
setPenaltyDiscount
public void setPenaltyDiscount(double penaltyDiscount) Setter for the field
penaltyDiscount
.- Parameters:
penaltyDiscount
- a double
-
getCovariances
Getter for the field
covariances
.- Returns:
- a
ICovarianceMatrix
object
-
getSampleSize
public int getSampleSize()Getter for the field
sampleSize
.- Specified by:
getSampleSize
in interfaceScore
- Returns:
- a int
-
isEffectEdge
public boolean isEffectEdge(double bump) Returns true iff the edge between x and y is an effect edge.- Specified by:
isEffectEdge
in interfaceScore
- Parameters:
bump
- The bump.- Returns:
- True iff the edge between x and y is an effect edge.
-
getDataSet
-
isVerbose
public boolean isVerbose()isVerbose.
- Returns:
- a boolean
-
setVerbose
public void setVerbose(boolean verbose) Setter for the field
verbose
.- Parameters:
verbose
- a boolean
-
getVariables
The variables of the score.- Specified by:
getVariables
in interfaceScore
- Returns:
- This list.
-
setVariables
-
getMaxDegree
public int getMaxDegree()Returns the max degree, by default 1000.- Specified by:
getMaxDegree
in interfaceScore
- Returns:
- The max degree.
-
determines
Returns true iff the score determines the edge between x and y.- Specified by:
determines
in interfaceScore
- Parameters:
z
- The set of nodes.y
- The node.- Returns:
- True iff the score determines the edge between x and y.
-
getDeterminismThreshold
public double getDeterminismThreshold()Getter for the field
determinismThreshold
.- Returns:
- a double
-
setDeterminismThreshold
public void setDeterminismThreshold(double determinismThreshold) Setter for the field
determinismThreshold
.- Parameters:
determinismThreshold
- a double
-