Class SemBicScoreDeterministic
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.SemBicScoreDeterministic
- All Implemented Interfaces:
Score
Implements the continuous BIC score for FGES.
- Author:
- josephramsey
-
Constructor Summary
ConstructorsConstructorDescriptionSemBicScoreDeterministic(ICovarianceMatrix covariances) Constructs the score using a covariance matrix. -
Method Summary
Modifier and TypeMethodDescriptionbooleandetermines(List<Node> z, Node y) doubleintdoubleSpecialized scoring method for a single parent.intThe sample size of the data.The variables of the score.booleanisEffectEdge(double bump) booleandoublelocalScore(int i, int... parents) Calculates the sample likelihood and BIC score for i given its parents in a simple SEM modeldoublelocalScoreDiff(int x, int y, int[] z) voidsetDeterminismThreshold(double determinismThreshold) voidsetPenaltyDiscount(double penaltyDiscount) voidsetVariables(List<Node> variables) voidsetVerbose(boolean verbose) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.
-
-
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:
localScorein interfaceScore- Parameters:
i- The node.parents- The parents.- Returns:
- The score.
-
localScoreDiff
public double localScoreDiff(int x, int y, int[] z) - Specified by:
localScoreDiffin interfaceScore
-
getPenaltyDiscount
public double getPenaltyDiscount()Specialized scoring method for a single parent. Used to speed up the effect edges search. -
setPenaltyDiscount
public void setPenaltyDiscount(double penaltyDiscount) -
getCovariances
-
getSampleSize
public int getSampleSize()Description copied from interface:ScoreThe sample size of the data.- Specified by:
getSampleSizein interfaceScore- Returns:
- This size.
-
isEffectEdge
public boolean isEffectEdge(double bump) - Specified by:
isEffectEdgein interfaceScore
-
getDataSet
-
isVerbose
public boolean isVerbose() -
setVerbose
public void setVerbose(boolean verbose) -
getVariables
Description copied from interface:ScoreThe variables of the score.- Specified by:
getVariablesin interfaceScore- Returns:
- This list.
-
setVariables
-
getMaxDegree
public int getMaxDegree()- Specified by:
getMaxDegreein interfaceScore
-
determines
- Specified by:
determinesin interfaceScore
-
getDeterminismThreshold
public double getDeterminismThreshold() -
setDeterminismThreshold
public void setDeterminismThreshold(double determinismThreshold)
-