Class SimpleAccumulator
java.lang.Object
org.tweetyproject.arg.deductive.accumulator.SimpleAccumulator
- All Implemented Interfaces:
Accumulator
This implementation of an accumulator simply sums
up the categorizations of the argument trees.
Values of pro-trees are added and values of
con-trees are subtracted.
- Author:
- Matthias Thimm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
accumulate
(List<Double> pro, List<Double> contra) Accumulates the pros and contras of the given list into a single double.
-
Constructor Details
-
SimpleAccumulator
public SimpleAccumulator()Default Constructor
-
-
Method Details
-
accumulate
Description copied from interface:Accumulator
Accumulates the pros and contras of the given list into a single double. The higher the value the more convincing the pros, the lower the more convincing the contras. In general, if the value is greater 0 then the query under consideration can be accepted.- Specified by:
accumulate
in interfaceAccumulator
- Parameters:
pro
- some doubles.contra
- some doubles.- Returns:
- a double.
-