Module es.upm.fi.cig.multictbnc
Class AbstractStructureConstraints
java.lang.Object
es.upm.fi.cig.multictbnc.learning.structure.constraints.AbstractStructureConstraints
- All Implemented Interfaces:
StructureConstraints
- Direct Known Subclasses:
DAG
,Digraph
,EmptyBN
,MaxKCTBNC
,NaiveBayes
Contains common attributes and methods for classes that determine the structure constraints of PFG.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialiseStructure
(PGM<? extends Node> pgm) The structure of the PGM is initialised.boolean
Determines if there is only one possible structure.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface es.upm.fi.cig.multictbnc.learning.structure.constraints.StructureConstraints
isStructureLegal
-
Constructor Details
-
AbstractStructureConstraints
public AbstractStructureConstraints()
-
-
Method Details
-
initialiseStructure
Description copied from interface:StructureConstraints
The structure of the PGM is initialised. This method is necessary for models such as naive Bayes.- Specified by:
initialiseStructure
in interfaceStructureConstraints
- Parameters:
pgm
- probabilistic graphical model
-
uniqueStructure
public boolean uniqueStructure()Description copied from interface:StructureConstraints
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.- Specified by:
uniqueStructure
in interfaceStructureConstraints
- Returns:
- true if there is only one possible structure, false otherwise
-