32 #include <opencog/util/platform.h> 
   33 #include <opencog/util/exceptions.h> 
   35 using namespace opencog;
 
   75     sprintf(buf, 
"(ctv %f %f %f)",
 
   85     if (NULL == ctv) 
return false;
 
   87 #define FLOAT_ACCEPTABLE_ERROR 0.000001 
   90 #define DOUBLE_ACCEPTABLE_ERROR 1.0e-14 
  120     nc->
count += oc->count;
 
  122                    oc->mean * oc->count) / nc->count;
 
  133     return std::static_pointer_cast<TruthValue>(nc);
 
strength_t getMean() const 
 
virtual count_t getCount() const =0
 
std::shared_ptr< TruthValue > TruthValuePtr
 
virtual TruthValuePtr merge(TruthValuePtr, TVMergeStyle ms=DEFAULT) const 
 
ProbabilisticTruthValue(strength_t, confidence_t, count_t)
 
TruthValuePtr clone() const 
 
#define FLOAT_ACCEPTABLE_ERROR
 
virtual confidence_t getConfidence() const =0
 
std::shared_ptr< ProbabilisticTruthValue > ProbabilisticTruthValuePtr
 
#define DOUBLE_ACCEPTABLE_ERROR
 
confidence_t getConfidence() const 
 
std::string toString() const 
 
virtual strength_t getMean() const =0
 
virtual bool operator==(const TruthValue &rhs) const 
 
a TruthValue that stores a mean, a confidence and the number of observations 
 
TruthValueType getType() const