26 #ifndef _OPENCOG_INDEFINITE_TRUTH_VALUE_H
27 #define _OPENCOG_INDEFINITE_TRUTH_VALUE_H
126 throw RuntimeException(TRACE_INFO,
"Cannot clone non-indefinite TV");
127 return std::make_shared<IndefiniteTruthValue>(
139 return std::make_shared<IndefiniteTruthValue>(l, u, c);
150 return std::make_shared<IndefiniteTruthValue>(*this);
173 #endif // _OPENCOG_INDEFINITE_TRUTH_VALUE_H
strength_t findDiff(strength_t idiff)
find diff by dichotomy
confidence_t getConfidence() const
void setFirstOrderDistribution(const std::vector< strength_t * > &)
void init(strength_t l=0.0f, strength_t u=0.0f, confidence_t c=DEFAULT_CONFIDENCE_LEVEL)
const std::vector< strength_t * > & getFirstOrderDistribution() const
static IndefiniteTruthValuePtr createITV(strength_t l, strength_t u, confidence_t c=DEFAULT_CONFIDENCE_LEVEL)
std::shared_ptr< TruthValue > TruthValuePtr
void setConfidenceLevel(confidence_t)
std::vector< strength_t * > firstOrderDistribution
TruthValueType getType() const
static confidence_t DEFAULT_CONFIDENCE_LEVEL
static void setDefaultK(count_t k)
static strength_t diffError
confidence_t getConfidenceLevel() const
static void setDefaultConfidenceLevel(confidence_t c)
std::shared_ptr< IndefiniteTruthValue > IndefiniteTruthValuePtr
std::string toString() const
static TruthValuePtr createTV(strength_t l, strength_t u, confidence_t c=DEFAULT_CONFIDENCE_LEVEL)
confidence_t confidenceLevel
referred as "b" in the paper
void copy(const IndefiniteTruthValue &)
TruthValuePtr merge(TruthValuePtr, TVMergeStyle ms=DEFAULT) const
static IndefiniteTruthValuePtr createITV(TruthValuePtr tv)
static TruthValuePtr createTV(TruthValuePtr tv)
TruthValuePtr clone() const
strength_t getMean() const
virtual bool operator==(const TruthValue &rhs) const
it is a strict equality comparison, without error interval tolerance
static IndefiniteTruthValuePtr IndefiniteTVCast(TruthValuePtr tv)
void setSymmetric(bool s)
TruthValue * rawclone() const