Class SemBicScoreDeterministic
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.SemBicScoreDeterministic
- All Implemented Interfaces:
- Score
Implements the continuous BIC score for FGES.
- Version:
- $Id: $Id
- Author:
- josephramsey
- 
Constructor SummaryConstructorsConstructorDescriptionSemBicScoreDeterministic(ICovarianceMatrix covariances) Constructs the score using a covariance matrix.
- 
Method SummaryModifier and TypeMethodDescriptionbooleandetermines(List<Node> z, Node y) Returns true iff the score determines the edge between x and y.Getter for the fieldcovariances.getDataSet.doubleGetter for the fielddeterminismThreshold.intReturns the max degree, by default 1000.doubleSpecialized scoring method for a single parent.intGetter for the fieldsampleSize.The variables of the score.booleanisEffectEdge(double bump) Returns true iff the edge between x and y is an effect edge.booleanisVerbose.doublelocalScore(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) Returns the score difference of the graph.voidsetDeterminismThreshold(double determinismThreshold) Setter for the fielddeterminismThreshold.voidsetPenaltyDiscount(double penaltyDiscount) Setter for the fieldpenaltyDiscount.voidsetVariables(List<Node> variables) Setter for the fieldvariables.voidsetVerbose(boolean verbose) Setter for the fieldverbose.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.score.Scoreappend, getVariable, localScore, localScore, localScoreDiff, toString
- 
Constructor Details- 
SemBicScoreDeterministicConstructs the score using a covariance matrix.- Parameters:
- covariances- a- ICovarianceMatrixobject
 
 
- 
- 
Method Details- 
localScorepublic 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 interface- Score
- Parameters:
- i- a int
- parents- a int
- Returns:
- a double
 
- 
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.
 
- 
getPenaltyDiscountpublic double getPenaltyDiscount()Specialized scoring method for a single parent. Used to speed up the effect edges search.- Returns:
- a double
 
- 
setPenaltyDiscountpublic void setPenaltyDiscount(double penaltyDiscount) Setter for the field penaltyDiscount.- Parameters:
- penaltyDiscount- a double
 
- 
getCovariancesGetter for the field covariances.- Returns:
- a ICovarianceMatrixobject
 
- 
getSampleSizepublic int getSampleSize()Getter for the field sampleSize.- Specified by:
- getSampleSizein interface- Score
- Returns:
- a int
 
- 
isEffectEdgepublic boolean isEffectEdge(double bump) Returns true iff the edge between x and y is 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.
 
- 
getDataSetgetDataSet. - Returns:
- a DataSetobject
 
- 
isVerbosepublic boolean isVerbose()isVerbose. - Returns:
- a boolean
 
- 
setVerbosepublic void setVerbose(boolean verbose) Setter for the field verbose.- Parameters:
- verbose- a boolean
 
- 
getVariablesThe variables of the score.- Specified by:
- getVariablesin interface- Score
- Returns:
- This list.
 
- 
setVariablesSetter for the field variables.- Parameters:
- variables- a- Listobject
 
- 
getMaxDegreepublic int getMaxDegree()Returns the max degree, by default 1000.- Specified by:
- getMaxDegreein interface- Score
- Returns:
- The max degree.
 
- 
determinesReturns true iff the score determines the edge between x and y.- Specified by:
- determinesin interface- Score
- Parameters:
- z- The set of nodes.
- y- The node.
- Returns:
- True iff the score determines the edge between x and y.
 
- 
getDeterminismThresholdpublic double getDeterminismThreshold()Getter for the field determinismThreshold.- Returns:
- a double
 
- 
setDeterminismThresholdpublic void setDeterminismThreshold(double determinismThreshold) Setter for the field determinismThreshold.- Parameters:
- determinismThreshold- a double
 
 
-