Class BayesNetworkScore
- java.lang.Object
-
- de.uka.ipd.sdq.dsexplore.bayesnets.utility.BayesNetworkScore
-
public class BayesNetworkScore extends Object
Class for calculating the score of a Bayesian Network. It contains various scoring techniques which the user can use at his/her own discretion.
-
-
Field Summary
Fields Modifier and Type Field Description protected static double
SQTPI
-
Constructor Summary
Constructors Constructor Description BayesNetworkScore(int[][] GraphMatrix, int[][] DataMatrix)
Constructor for the class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
AIC()
Scores the network according to the Akaike Information Criterion (AIC) technique.double
BDeuNetworkScore()
Scores the network according to the BDeu scoring technique.double
BIC()
Scores the network according to the Bayesian Information Criterion (BIC) technique.double
K2NetworkScore()
Scores the network according to the K2 scoring techniquedouble
LogLik()
Scores the network using the log-likelihood technique.static void
main(String[] args)
-
-
-
Field Detail
-
SQTPI
protected static final double SQTPI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BayesNetworkScore
public BayesNetworkScore(int[][] GraphMatrix, int[][] DataMatrix)
Constructor for the class. Initializes the Graph and Data fields- Parameters:
int
- [][] GraphMatrix - Adjacency matrix for the Graphint
- [][] DataMatrix - Matrix for the Data containing 0 and 1.
-
-
Method Detail
-
main
public static void main(String[] args)
-
K2NetworkScore
public double K2NetworkScore()
Scores the network according to the K2 scoring technique- Parameters:
No
- parameters- Returns:
- The score of the network as a double
-
BDeuNetworkScore
public double BDeuNetworkScore()
Scores the network according to the BDeu scoring technique. (Not recommended for use currently)- Parameters:
No
- parameters- Returns:
- The score of the network as a double
-
LogLik
public double LogLik()
Scores the network using the log-likelihood technique.- Parameters:
No
- parameters- Returns:
- The score of the network as a double
-
BIC
public double BIC()
Scores the network according to the Bayesian Information Criterion (BIC) technique.- Parameters:
No
- parameters- Returns:
- The score of the network as a double
-
AIC
public double AIC()
Scores the network according to the Akaike Information Criterion (AIC) technique.- Parameters:
No
- parameters- Returns:
- The score of the network as a double
-
-