Package edu.cmu.tetrad.search
Class MagSemBicScore
java.lang.Object
edu.cmu.tetrad.search.MagSemBicScore
- All Implemented Interfaces:
Score
- Author:
- Bryan Andrews
-
Constructor Summary
ConstructorsConstructorDescriptionMagSemBicScore
(DataSet dataSet) MagSemBicScore
(ICovarianceMatrix covariances) -
Method Summary
Modifier and TypeMethodDescriptionboolean
determines
(List<Node> z, Node y) getMag()
int
getOrder()
double
int
getVariable
(String targetName) boolean
isEffectEdge
(double bump) double
localScore
(int i) double
localScore
(int i, int parent) double
localScore
(int i, int... js) double
localScoreDiff
(int x, int y) double
localScoreDiff
(int x, int y, int[] z) void
resetMag()
void
void
void
void
setPenaltyDiscount
(double penaltyDiscount) 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
defaultScore, toString
-
Constructor Details
-
MagSemBicScore
-
MagSemBicScore
-
-
Method Details
-
getMag
-
setMag
-
resetMag
public void resetMag() -
getOrder
-
setOrder
-
resetOrder
public void resetOrder() -
localScore
public double localScore(int i, int... js) - Specified by:
localScore
in interfaceScore
- Parameters:
i
- The index of the node.js
- The indices of the node's parents.- Returns:
- The score, or NaN if the score cannot be calculated.
-
getPenaltyDiscount
public double getPenaltyDiscount() -
setPenaltyDiscount
public void setPenaltyDiscount(double penaltyDiscount) -
localScoreDiff
public double localScoreDiff(int x, int y, int[] z) - Specified by:
localScoreDiff
in interfaceScore
-
localScoreDiff
public double localScoreDiff(int x, int y) - Specified by:
localScoreDiff
in interfaceScore
-
localScore
public double localScore(int i, int parent) - Specified by:
localScore
in interfaceScore
-
localScore
public double localScore(int i) - Specified by:
localScore
in interfaceScore
-
getSampleSize
public int getSampleSize()- Specified by:
getSampleSize
in interfaceScore
-
getVariables
- Specified by:
getVariables
in interfaceScore
-
isEffectEdge
public boolean isEffectEdge(double bump) - Specified by:
isEffectEdge
in interfaceScore
-
getVariable
- Specified by:
getVariable
in interfaceScore
-
getMaxDegree
public int getMaxDegree()- Specified by:
getMaxDegree
in interfaceScore
-
determines
- Specified by:
determines
in interfaceScore
-