1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
mod simple;

pub use self::simple::SimpleTruthValue;

pub type Strength = f64;
pub type Confidence = f64;
pub type Count = f64;

pub trait TruthValue {
    fn mean(&self) -> Strength;
    fn confidence(&self) -> Confidence;
    fn count(&self) -> Count;
}