class

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

Source

Instance methods

==(other : TruthValue) : Bool

Check equality with another truth value

Source
clone

Clone this truth value

Source
confidence

Get the confidence (degree of certainty) [0.0, 1.0]

Source
count

Get the count (amount of evidence)

Source
false?

Check if this represents definite falsehood

Source
hash(hasher)

Hash function for use in collections

Source
merge(other : TruthValue) : TruthValue

Merge with another truth value

Source
null?

Check if this truth value is the default/null TV

Source
strength

Get the strength (degree of belief) [0.0, 1.0]

Source
to_a

Get truth value as float array [strength, confidence]

Source
to_s(io : IO) : Nil

Convert to string representation

Source
true?

Check if this represents definite truth

Source
type_name

Get the type name of this truth value

Source
valid?

Check if truth value is valid

Source