Class MaximumEntropyMachineShop
java.lang.Object
org.tweetyproject.logics.pcl.analysis.MaximumEntropyMachineShop
- All Implemented Interfaces:
BeliefBaseMachineShop
This consistency restorer uses the idea of the upper approximative distance minimization inconsistency measure to compute a
ME-probability distribution and adjust the probabilities of the conditionals accordingly.
- Author:
- Matthias Thimm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidExamplerepair(BeliefBase beliefBase) Repairs the given belief base, i.e.
-
Constructor Details
-
MaximumEntropyMachineShop
Constructor- Parameters:
rootFinder- the rootfinder
-
-
Method Details
-
repair
Description copied from interface:BeliefBaseMachineShopRepairs the given belief base, i.e. restores consistency.- Specified by:
repairin interfaceBeliefBaseMachineShop- Parameters:
beliefBase- a possibly inconsistent belief base.- Returns:
- a consistent belief base that is as close as possible to the given belief base. NOTE: if the given belief base is consistent this method is expected to return it unmodified.
-
main
public static void main(String[] args) throws FileNotFoundException, ParserException, IOException, GeneralMathException Example- Parameters:
args- the args- Throws:
FileNotFoundException- errorParserException- errorIOException- errorGeneralMathException- error
-