AtomSpace::TruthValue
Inherits Reference < Object
Base class for all truth value types
Constants
DEFAULT_TV = SimpleTruthValue.new(1.0, 0.0)
Default truth values
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
Instance methods
==(other : TruthValue) : Bool
Check equality with another truth value
clone
Clone this truth value
confidence
Get the confidence (degree of certainty) [0.0, 1.0]
count
Get the count (amount of evidence)
false?
Check if this represents definite falsehood
hash(hasher)
Hash function for use in collections
merge(other : TruthValue) : TruthValue
Merge with another truth value
null?
Check if this truth value is the default/null TV
strength
Get the strength (degree of belief) [0.0, 1.0]
to_a
Get truth value as float array [strength, confidence]
to_s(io : IO) : Nil
Convert to string representation
true?
Check if this represents definite truth
type_name
Get the type name of this truth value
valid?
Check if truth value is valid