horse/prob: remove redundant qualifiers
This commit is contained in:
@@ -24,7 +24,7 @@ pub type kfl
|
|||||||
|
|
||||||
// Automatically generated.
|
// Automatically generated.
|
||||||
// Comparison of the `kfl` type.
|
// Comparison of the `kfl` type.
|
||||||
pub fun kfl/cmp(this : kfl, other : kfl) : e order
|
pub fun cmp(this : kfl, other : kfl) : e order
|
||||||
match (this, other)
|
match (this, other)
|
||||||
(Impossible, Impossible) -> Eq
|
(Impossible, Impossible) -> Eq
|
||||||
(Impossible, _) -> Lt
|
(Impossible, _) -> Lt
|
||||||
@@ -53,7 +53,7 @@ pub fun kfl/cmp(this : kfl, other : kfl) : e order
|
|||||||
(Guaranteed, Guaranteed) -> Eq
|
(Guaranteed, Guaranteed) -> Eq
|
||||||
|
|
||||||
// Shows a string representation of the `kfl` type.
|
// Shows a string representation of the `kfl` type.
|
||||||
pub fun kfl/show(this : kfl) : e string
|
pub fun show(this : kfl) : e string
|
||||||
match this
|
match this
|
||||||
Impossible -> "impossible"
|
Impossible -> "impossible"
|
||||||
Probably-Not -> "probably not"
|
Probably-Not -> "probably not"
|
||||||
@@ -66,7 +66,7 @@ pub fun kfl/show(this : kfl) : e string
|
|||||||
Guaranteed -> "guaranteed"
|
Guaranteed -> "guaranteed"
|
||||||
|
|
||||||
// KFL multiplication, or the probability of cooccurrence of two independent events.
|
// KFL multiplication, or the probability of cooccurrence of two independent events.
|
||||||
pub fun kfl/(*)(a: kfl, b: kfl): e kfl
|
pub fun (*)(a: kfl, b: kfl): e kfl
|
||||||
val (l, h) = match a.cmp(b) // this operation is commutative
|
val (l, h) = match a.cmp(b) // this operation is commutative
|
||||||
Gt -> (b, a)
|
Gt -> (b, a)
|
||||||
_ -> (a, b)
|
_ -> (a, b)
|
||||||
@@ -92,7 +92,7 @@ pub fun kfl/(*)(a: kfl, b: kfl): e kfl
|
|||||||
(Guaranteed, _) -> Guaranteed
|
(Guaranteed, _) -> Guaranteed
|
||||||
|
|
||||||
// KFL addition, or the probability of occurrence of at least one of two independent events.
|
// KFL addition, or the probability of occurrence of at least one of two independent events.
|
||||||
pub fun kfl/(+)(a: kfl, b: kfl): e kfl
|
pub fun (+)(a: kfl, b: kfl): e kfl
|
||||||
val (l, h) = match a.cmp(b) // this operation is commutative
|
val (l, h) = match a.cmp(b) // this operation is commutative
|
||||||
Gt -> (b, a)
|
Gt -> (b, a)
|
||||||
_ -> (a, b)
|
_ -> (a, b)
|
||||||
|
|||||||
Reference in New Issue
Block a user