Base class for all truth value types
Constants
DEFAULT_TV = SimpleTruthValue.new(1.0, 0.0)
FALSE_TV = SimpleTruthValue.new(0.0, 1.0)
NULL_TV = SimpleTruthValue.new(0.0, 0.0)
TRUE_TV = SimpleTruthValue.new(1.0, 1.0)
Constructors
from_string(str : String) : TruthValue
Create truth value from string representation
SourceInstance methods
==(other : TruthValue) : Bool
Check equality with another truth value
Sourceconfidence
Get the confidence (degree of certainty) [0.0, 1.0]
Sourcecount
Get the count (amount of evidence)
Sourcefalse?
Check if this represents definite falsehood
Sourcehash(hasher)
Hash function for use in collections
Sourcemerge(other : TruthValue) : TruthValue
Merge with another truth value
Sourcenull?
Check if this truth value is the default/null TV
Sourcestrength
Get the strength (degree of belief) [0.0, 1.0]
Sourceto_a
Get truth value as float array [strength, confidence]
Sourceto_s(io : IO) : Nil
Convert to string representation
Sourcetrue?
Check if this represents definite truth
Sourcetype_name
Get the type name of this truth value
Sourcevalid?
Check if truth value is valid
Source