Class MagSemBicScore
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.MagSemBicScore
- All Implemented Interfaces:
Score
Gives a BIC score for a linear, Gaussian MAG (Mixed Ancestral Graph). It
will perform the same as SemBicScore for DAGs.
As for all scores in Tetrad, higher scores mean more dependence, and negative scores indicate independence.
- Author:
- Bryan Andrews
-
Constructor Summary
ConstructorsConstructorDescriptionMagSemBicScore(DataSet dataSet) Constructor.MagSemBicScore(ICovarianceMatrix covariances) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleandetermines(List<Node> z, Node y) getMag()Returns the wrapped MAG.intReturns a judgment of the max degree needed for this score.getOrder()Returns the order.doubleintReturns the sample size.Returns the list of variables.booleanisEffectEdge(double bump) Returns a judgment for FGES as to whether an edges with this bump (for this score) counts as an effect edge.doublelocalScore(int i, int... js) Return the BIC score for a node given its parents.doublelocalScoreDiff(int x, int y, int[] z) voidresetMag()Sets the MAG to null.voidSets the order ot null.voidSets the MAG to wrap.voidSets the order.voidsetPenaltyDiscount(double penaltyDiscount) Seets the penalty discount.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
-
MagSemBicScore
Constructor.- Parameters:
covariances- The covarainces to analyze.
-
MagSemBicScore
Constructor.- Parameters:
dataSet- The continuous dataset to analyze.
-
-
Method Details
-
getMag
Returns the wrapped MAG.- Returns:
- This MAG.
-
setMag
Sets the MAG to wrap.- Parameters:
mag- This MAG.
-
resetMag
public void resetMag()Sets the MAG to null. -
getOrder
Returns the order.- Returns:
- The order of variables, a list.
-
setOrder
Sets the order.- Parameters:
order- The order of variables, a list.
-
resetOrder
public void resetOrder()Sets the order ot null. -
localScore
public double localScore(int i, int... js) Return the BIC score for a node given its parents.- Specified by:
localScorein interfaceScore- Parameters:
i- The index of the node.js- The indices of the node's parents.- Returns:
- The BIC score.
-
getPenaltyDiscount
public double getPenaltyDiscount()- Returns:
- The penalty discount, a multiplier on the penalty term of BIC.
-
setPenaltyDiscount
public void setPenaltyDiscount(double penaltyDiscount) Seets the penalty discount.- Parameters:
penaltyDiscount- This number, a multiplier on the penalty term of BIC.
-
localScoreDiff
public double localScoreDiff(int x, int y, int[] z) - Specified by:
localScoreDiffin interfaceScore- Returns:
- localScore(y | z, x) - localScore(y | z).
-
getSampleSize
public int getSampleSize()Returns the sample size.- Specified by:
getSampleSizein interfaceScore- Returns:
- This size.
-
getVariables
Returns the list of variables.- Specified by:
getVariablesin interfaceScore- Returns:
- This list.
-
isEffectEdge
public boolean isEffectEdge(double bump) Returns a judgment for FGES as to whether an edges with this bump (for this score) counts as an effect edge.- Specified by:
isEffectEdgein interfaceScore- Parameters:
bump- Ths bump.- Returns:
- The judgment.
- See Also:
-
getMaxDegree
public int getMaxDegree()Returns a judgment of the max degree needed for this score.- Specified by:
getMaxDegreein interfaceScore- Returns:
- This max.
- See Also:
-
determines
- Specified by:
determinesin interfaceScore- Throws:
javax.help.UnsupportedOperationException- Not implemented.
-