Class MnlrScore
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.MnlrScore
- All Implemented Interfaces:
Score
Implements a mixed variable polynomial BIC score for fGES.
As for all scores in Tetrad, higher scores mean more dependence, and negative scores indicate independence.
- Author:
- Bryan Andrews
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns a maximum degree used by some algorithms.int
Returns the sample size.Returns the variables.boolean
isEffectEdge
(double bump) A method for FGES returning a judgment of whether an edge with a given bump counts as a effect edge.double
localScore
(int i, int... parents) The local score of the child given its parents.double
localScoreDiff
(int x, int y, int[] z) localScore(y | z, x) - localScore(y | z).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.cmu.tetrad.search.score.Score
append, determines, getVariable, localScore, localScore, localScoreDiff, toString
-
Constructor Details
-
MnlrScore
Constructor.- Parameters:
dataSet
- The mixed dataset being analyzed.structurePrior
- The structure priorfDegree
- The f degree.
-
-
Method Details
-
localScore
public double localScore(int i, int... parents) The local score of the child given its parents.- Specified by:
localScore
in interfaceScore
- Parameters:
i
- The node.parents
- The parents.- Returns:
- The score.
-
localScoreDiff
public double localScoreDiff(int x, int y, int[] z) localScore(y | z, x) - localScore(y | z).- Specified by:
localScoreDiff
in interfaceScore
- Parameters:
x
- A node.y
- TAhe node.z
- A set of nodes.- Returns:
- The score difference.
-
getSampleSize
public int getSampleSize()Returns the sample size.- Specified by:
getSampleSize
in interfaceScore
- Returns:
- This size.
-
isEffectEdge
public boolean isEffectEdge(double bump) A method for FGES returning a judgment of whether an edge with a given bump counts as a effect edge.- Specified by:
isEffectEdge
in interfaceScore
- Parameters:
bump
- The bump.- Returns:
- True, if so.
- See Also:
-
getVariables
Returns the variables.- Specified by:
getVariables
in interfaceScore
- Returns:
- This lsit.
-
getMaxDegree
public int getMaxDegree()Returns a maximum degree used by some algorithms.- Specified by:
getMaxDegree
in interfaceScore
- Returns:
- This maximum.
-