27 #ifndef _OPENCOG_SIMPLE_TRUTH_VALUE_H_
28 #define _OPENCOG_SIMPLE_TRUTH_VALUE_H_
92 return std::make_shared<SimpleTruthValue>(
mean,
count);
101 return std::make_shared<SimpleTruthValue>(*this);
112 #endif // _OPENCOG_SIMPLE_TRUTH_VALUE_H_
count_t count
Total number of observations used to estimate the mean.
a TruthValue that stores a mean and the number of observations (strength and confidence) ...
strength_t getMean() const
TruthValuePtr merge(TruthValuePtr, TVMergeStyle ms) const
std::shared_ptr< TruthValue > TruthValuePtr
static SimpleTruthValuePtr createSTV(strength_t mean, count_t count)
static confidence_t countToConfidence(count_t)
void initialize(strength_t new_mean, count_t new_count)
TruthValueType getType() const
confidence_t getConfidence() const
virtual bool operator==(const TruthValue &rhs) const
static count_t confidenceToCount(confidence_t)
static TruthValuePtr createTV(strength_t mean, count_t count)
TruthValuePtr clone() const
std::shared_ptr< SimpleTruthValue > SimpleTruthValuePtr
TruthValue * rawclone() const
SimpleTruthValue(strength_t mean, count_t count)
std::string toString() const
strength_t mean
Mean of the strength of the TV over all observations.