public class ConditionalStructureKappaBuilder
extends java.lang.Object
KappaValue
instance and also it sub instances
of type KappaMin
.Modifier and Type | Field and Description |
---|---|
private boolean |
fastEvaluation
if this flag is true the building of the kappa minimas breaks at the first zero
|
Constructor and Description |
---|
ConditionalStructureKappaBuilder()
Default-Ctor: Generates a builder that does not uses fast evaluation
|
ConditionalStructureKappaBuilder(boolean fastEval)
Ctor: Generates a builder that uses fast evaluation depending on the given parameter
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<Conditional,KappaValue> |
build(ConditionalStructure structure)
This builds a map of conditionals to
KappaValue instances which represent the penalty
term for a falsified conditional |
private void |
buildMinima(ConditionalStructure structure,
java.util.Map<Conditional,KappaValue> kappaMap,
Conditional curCondition,
java.util.List<NicePossibleWorld> worlds,
KappaMin workingMin)
Helper method: Builds the minimums for the kappa values, a collection of worlds is given which might
be either the verifiying or the falsifiying worlds and for this collection of worlds the corresponding
KappaMin is given, such that positiveMinimum is calculated using verifying worlds and
negativeMinumum is using falsifying worlds. |
static void |
main(java.lang.String[] args) |
private boolean fastEvaluation
public ConditionalStructureKappaBuilder()
public ConditionalStructureKappaBuilder(boolean fastEval)
fastEval
- A flag indicating if fast evaluation shall be used (true) or not (false)public java.util.Map<Conditional,KappaValue> build(ConditionalStructure structure)
KappaValue
instances which represent the penalty
term for a falsified conditionalstructure
- The conditional structure that is used as basis belief base for the generation
of the kappa values.Conditional
instances to KappaValue
instances that represent
the penalty that is given is the key conditional is falsified.private void buildMinima(ConditionalStructure structure, java.util.Map<Conditional,KappaValue> kappaMap, Conditional curCondition, java.util.List<NicePossibleWorld> worlds, KappaMin workingMin)
KappaMin
is given, such that positiveMinimum is calculated using verifying worlds and
negativeMinumum is using falsifying worlds.structure
- kappaMap
- curCondition
- worlds
- workingMin
- public static void main(java.lang.String[] args)