|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttrust_system_lib.Opinion
public class Opinion
The Opinion class implements Subjective Logic opinions.
Field Summary | |
---|---|
private double |
a
Base-rate field. |
private double |
b
Belief field. |
private double |
d
Disbelief field. |
private double |
u
Uncertainty field. |
Constructor Summary | |
---|---|
Opinion(double b,
double d,
double u,
double a)
Construct an Opinion by passing all field values. |
Method Summary | |
---|---|
Opinion |
clone()
Create a duplicate of this Opinion object. |
int |
compareTo(Opinion that)
Compare this Opinion to another Opinion object. |
Opinion |
consensus(Opinion that)
The consensus operator used in the 'fusion' of two Opinions. |
Opinion |
discount(Opinion that)
The discount operator used in the analysis of transitive chains. |
void |
edit(int pos_fbacks,
int neg_fbacks)
Update an Opinion using feedback data. |
double |
expectedValue()
Calculate the expected value of this Opinion. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double b
private double d
private double u
private double a
Constructor Detail |
---|
public Opinion(double b, double d, double u, double a)
b
- Beliefd
- Disbeliefu
- Uncertaintya
- Base-rateMethod Detail |
---|
public void edit(int pos_fbacks, int neg_fbacks)
pos_fbacks
- Number of positive feedbacksneg_fbacks
- Number of negative feedbackspublic double expectedValue()
public Opinion discount(Opinion that)
that
- Second Opinion in 'this -> that' chain. Order matters!
public Opinion consensus(Opinion that)
that
- The second Opinion being averaged with 'this' one.
public int compareTo(Opinion that)
compareTo
in interface java.lang.Comparable<Opinion>
that
- The other Opinion being compared to 'this' one
public Opinion clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |