Module es.upm.fi.cig.multictbnc
Interface StructureConstraints
- All Known Implementing Classes:
AbstractStructureConstraints
,DAG
,Digraph
,EmptyBN
,MaxKCTBNC
,NaiveBayes
public interface StructureConstraints
Interface used to define classes that specify structure constraints for PGMs.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialiseStructure
(PGM<? extends Node> pgm) The structure of the PGM is initialised.boolean
isStructureLegal
(boolean[][] adjacencyMatrix, NodeIndexer<? extends Node> nodeIndexer) Determines if the structure of a PGM is legal.boolean
Determines if there is only one possible structure.
-
Method Details
-
initialiseStructure
The structure of the PGM is initialised. This method is necessary for models such as naive Bayes.- Parameters:
pgm
- probabilistic graphical model
-
isStructureLegal
Determines if the structure of a PGM is legal.- Parameters:
adjacencyMatrix
- adjacency matrixnodeIndexer
- node indexer that allows access to information about the nodes- Returns:
- true if the structure is legal, false otherwise
-
uniqueStructure
boolean uniqueStructure()Determines if there is only one possible structure. This is the case of models such as naive Bayes, for which it is not necessary to find a structure.- Returns:
- true if there is only one possible structure, false otherwise
-