We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bf2776 commit 0eed308Copy full SHA for 0eed308
pkg/subjectivelogic/Opinion.go
@@ -37,6 +37,17 @@ type Opinion struct {
37
baseRate float64
38
}
39
40
+/*
41
+An interface to query binomial opinions from subjective logic.
42
+Provided to increase compatibility with other SL implementations.
43
+*/
44
+type QueryableOpinion interface {
45
+ GetBelief() float64
46
+ GetDisbelief() float64
47
+ GetUncertainty() float64
48
+ GetBaseRate() float64
49
+}
50
+
51
/*
52
NewOpinion takes four float64 values and outputs an *Opinion as well as an Error.
53
In case a valid Opinion can be formed, it will be returned and the error will be nil.
0 commit comments