Package edu.cmu.tetrad.search
Class PoissonPriorScore
java.lang.Object
edu.cmu.tetrad.search.PoissonPriorScore
- All Implemented Interfaces:
Score
Implements Poisson prior score (Bryan).
- Author:
- Joseph Ramsey
-
Constructor Summary
ConstructorsConstructorDescriptionPoissonPriorScore(DataSet dataSet, boolean precomputeCovariances) Constructs the score using a covariance matrix.PoissonPriorScore(ICovarianceMatrix covariances) Constructs the score using a covariance matrix. -
Method Summary
Modifier and TypeMethodDescriptionbooleandetermines(List<Node> z, Node y) Specialized scoring method for a single parent.getData()intstatic doublegetP(int pn, int m0, double lambda) intbooleanisEffectEdge(double bump) booleandoublelocalScore(int i, int... parents) doublelocalScoreDiff(int x, int y, int[] z) voidsetLambda(double lambda) 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, localScore, localScore, localScoreDiff, toString
-
Constructor Details
-
PoissonPriorScore
Constructs the score using a covariance matrix. -
PoissonPriorScore
Constructs the score using a covariance matrix.
-
-
Method Details
-
localScoreDiff
public double localScoreDiff(int x, int y, int[] z) - Specified by:
localScoreDiffin interfaceScore
-
localScore
- 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.
- Throws:
RuntimeException
-
getP
public static double getP(int pn, int m0, double lambda) -
getCovariances
Specialized scoring method for a single parent. Used to speed up the effect edges search. -
getSampleSize
public int getSampleSize()- Specified by:
getSampleSizein interfaceScore
-
isEffectEdge
public boolean isEffectEdge(double bump) - Specified by:
isEffectEdgein interfaceScore
-
isVerbose
public boolean isVerbose() -
setVerbose
public void setVerbose(boolean verbose) -
getVariables
- Specified by:
getVariablesin interfaceScore
-
getMaxDegree
public int getMaxDegree()- Specified by:
getMaxDegreein interfaceScore
-
determines
- Specified by:
determinesin interfaceScore
-
getData
-
setLambda
public void setLambda(double lambda)
-