Package edu.cmu.tetrad.search
Class ImagesScore
java.lang.Object
edu.cmu.tetrad.search.ImagesScore
- All Implemented Interfaces:
Score
Implements a score to average results over multiple scores.
- Author:
- Joseph Ramsey
-
Constructor Summary
ConstructorsConstructorDescriptionImagesScore(List<Score> scores) Constructs the score using a covariance matrix. -
Method Summary
Modifier and TypeMethodDescriptionbooleandetermines(List<Node> z, Node y) intdoubleintbooleanisEffectEdge(double bump) booleandoublelocalScore(int i) doublelocalScore(int i, int parent) Specialized scoring method for a single parent.doublelocalScore(int i, int[] parents) Calculates the sample likelihood and BIC score for i given its parents in a simple SEM modeldoublelocalScore(int i, int[] parents, int index) doublelocalScoreDiff(int x, int y, int[] z) voidsetVerbose(boolean verbose) 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
append, defaultScore, getVariable, localScoreDiff, toString
-
Constructor Details
-
ImagesScore
Constructs the score using a covariance matrix.
-
-
Method Details
-
localScoreDiff
public double localScoreDiff(int x, int y, int[] z) - Specified by:
localScoreDiffin interfaceScore
-
localScore
public 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 interfaceScore- Parameters:
i- The index of the node.parents- The indices of the node's parents.- Returns:
- The score, or NaN if the score cannot be calculated.
-
localScore
public double localScore(int i, int[] parents, int index) -
localScore
public double localScore(int i, int parent) Specialized scoring method for a single parent. Used to speed up the effect edges search.- Specified by:
localScorein interfaceScore
-
localScore
public double localScore(int i) - Specified by:
localScorein interfaceScore
-
getPenaltyDiscount
public double getPenaltyDiscount() -
isEffectEdge
public boolean isEffectEdge(double bump) - Specified by:
isEffectEdgein interfaceScore
-
getDataSet
-
isVerbose
public boolean isVerbose() -
setVerbose
public void setVerbose(boolean verbose) -
getVariables
- Specified by:
getVariablesin interfaceScore
-
getSampleSize
public int getSampleSize()- Specified by:
getSampleSizein interfaceScore
-
getMaxDegree
public int getMaxDegree()- Specified by:
getMaxDegreein interfaceScore
-
determines
- Specified by:
determinesin interfaceScore
-