27 using namespace opencog;
111 auto other_te = gtv->getTotalEvidence();
117 auto new_fs = std::max(
fuzzyStrength, gtv->getFuzzyStrength());
118 auto new_c = new_te / (new_te +
KKK);
121 auto new_e = std::max(
entropy, gtv->getEntropy());
123 return std::make_shared<GenericTruthValue>(new_pe, new_te, new_f, new_fs,
130 if (NULL == &rhs)
return false;
132 #define FLOAT_ACCEPTABLE_ERROR 0.000001
140 #define DOUBLE_ACCEPTABLE_ERROR 1.0e-14
154 sprintf(buf,
"(gtv %f %f %f %f %f %f)",
#define FLOAT_ACCEPTABLE_ERROR
strength_t getFrequency() const
std::shared_ptr< GenericTruthValue > GenericTruthValuePtr
#define DOUBLE_ACCEPTABLE_ERROR
confidence_t getConfidence() const
count_t getPositiveEvidence() 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)