24 #ifndef _OPENCOG_GENERIC_TRUTH_VALUE_H
25 #define _OPENCOG_GENERIC_TRUTH_VALUE_H
30 #include <opencog/util/exceptions.h>
44 :
public std::enable_shared_from_this<GenericTruthValue>
48 throw RuntimeException(TRACE_INFO,
"Cannot modify truth values!");
78 return std::make_shared<GenericTruthValue>(*this);
108 #endif // _OPENCOG_GENERIC_TRUTH_VALUE_H
GenericTruthValuePtr clone() const
strength_t getFrequency() const
GenericTruthValue & operator=(const GenericTruthValue &rhs)
std::shared_ptr< GenericTruthValue > GenericTruthValuePtr
confidence_t getConfidence() const
count_t getPositiveEvidence() const
GenericTruthValue * rawclone() const
entropy_t getEntropy() const
count_t getTotalEvidence() const
GenericTruthValuePtr merge(GenericTruthValuePtr) const
virtual bool operator==(const GenericTruthValue &rhs) const
std::string toString() const
strength_t getLogFuzzyStrength() const
strength_t getFuzzyStrength() const
count_t getLogTotalEvidence() const
confidence_t getLogConfidence() const
count_t getLogPositiveEvidence() const
strength_t getLogFrequency() const
GenericTruthValue(count_t, count_t, strength_t, strength_t, confidence_t, entropy_t)