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.
- Version:
- $Id: $Id
- Author:
- Bryan Andrews
- 
Constructor SummaryConstructorsConstructorDescriptionMagSemBicScore(DataSet dataSet, boolean precomputeCovariances) Constructor.MagSemBicScore(ICovarianceMatrix covariances) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptiongetMag()Returns the wrapped MAG.intReturns the max degree, by default 1000.getOrder()Returns the order.doublegetPenaltyDiscount.intThe sample size of the data.The variables of the score.booleanisEffectEdge(double bump) Returns true iff the edge between x and y is an effect edge.doublelocalScore(int i, int... js) The score of a node given its parents.doublelocalScoreDiff(int x, int y, int[] z) Returns the score difference of the graph.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.toString()toString.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.score.Scoreappend, determines, getVariable, localScore, localScore, localScoreDiff
- 
Constructor Details- 
MagSemBicScoreConstructor.- Parameters:
- covariances- The covarainces to analyze.
 
- 
MagSemBicScoreConstructor.- Parameters:
- dataSet- The continuous dataset to analyze.
- precomputeCovariances- a boolean
 
 
- 
- 
Method Details- 
getMagReturns the wrapped MAG.- Returns:
- This MAG.
 
- 
setMagSets the MAG to wrap.- Parameters:
- mag- This MAG.
 
- 
resetMagpublic void resetMag()Sets the MAG to null.
- 
getOrderReturns the order.- Returns:
- The order of variables, a list.
 
- 
setOrderSets the order.- Parameters:
- order- The order of variables, a list.
 
- 
resetOrderpublic void resetOrder()Sets the order ot null.
- 
localScorepublic double localScore(int i, int... js) The score of a node given its parents.Return the BIC score for a node given its parents. - Specified by:
- localScorein interface- Score
- Parameters:
- i- The node.
- js- The parents.
- Returns:
- The score.
 
- 
getPenaltyDiscountpublic double getPenaltyDiscount()getPenaltyDiscount. - Returns:
- The penalty discount, a multiplier on the penalty term of BIC.
 
- 
setPenaltyDiscountpublic void setPenaltyDiscount(double penaltyDiscount) Seets the penalty discount.- Parameters:
- penaltyDiscount- This number, a multiplier on the penalty term of BIC.
 
- 
localScoreDiffpublic double localScoreDiff(int x, int y, int[] z) Returns the score difference of the graph.- Specified by:
- localScoreDiffin interface- Score
- Parameters:
- x- A node.
- y- TAhe node.
- z- A set of nodes.
- Returns:
- The score difference.
 
- 
getSampleSizepublic int getSampleSize()The sample size of the data.Returns the sample size. - Specified by:
- getSampleSizein interface- Score
- Returns:
- This size.
 
- 
getVariablesThe variables of the score.Returns the list of variables. - Specified by:
- getVariablesin interface- Score
- Returns:
- This list.
 
- 
isEffectEdgepublic boolean isEffectEdge(double bump) Returns true iff the edge between x and y is an effect edge.Returns a judgment for FGES as to whether an edges with this bump (for this score) counts as an effect edge. - Specified by:
- isEffectEdgein interface- Score
- Parameters:
- bump- The bump.
- Returns:
- True iff the edge between x and y is an effect edge.
- See Also:
 
- 
getMaxDegreepublic int getMaxDegree()Returns the max degree, by default 1000.Returns a judgment of the max degree needed for this score. - Specified by:
- getMaxDegreein interface- Score
- Returns:
- The max degree.
- See Also:
 
- 
toStringtoString. 
 
-