public class SimpleProductSemantics extends AbstractSocialSemantics<java.lang.Double>
Modifier and Type | Field and Description |
---|---|
private double |
epsilon
The epsilon parameter in Def.
|
double |
precision
Precision of comparisons between values.
|
Constructor and Description |
---|
SimpleProductSemantics(double epsilon)
Creates a new simple product semantics with the given epsilon
parameter for the simple vote aggregation function.
|
SimpleProductSemantics(double epsilon,
double precision)
Creates a new simple product semantics with the given epsilon
parameter for the simple vote aggregation function.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
and(java.lang.Double arg1,
java.lang.Double arg2)
The AND-operation on L in this framework
|
java.lang.Double |
bottomElement()
Returns the bottom element of this semantics.
|
int |
compare(java.lang.Double arg0,
java.lang.Double arg1) |
java.lang.Double |
neg(java.lang.Double arg)
The NEG-operation on L in this framework
|
java.lang.Double |
or(java.lang.Double arg1,
java.lang.Double arg2)
The OR-operation on L in this framework
|
java.lang.Double |
supp(int pos,
int neg)
The vote aggregation function
|
java.lang.Double |
topElement()
Returns the top element of this semantics.
|
and, or
private double epsilon
public double precision
public SimpleProductSemantics(double epsilon, double precision)
epsilon
- some non-negative valueprecision
- precision of comparisons between values.public SimpleProductSemantics(double epsilon)
epsilon
- some non-negative valuepublic java.lang.Double bottomElement()
AbstractSocialSemantics
bottomElement
in class AbstractSocialSemantics<java.lang.Double>
public java.lang.Double topElement()
AbstractSocialSemantics
topElement
in class AbstractSocialSemantics<java.lang.Double>
public java.lang.Double supp(int pos, int neg)
AbstractSocialSemantics
supp
in class AbstractSocialSemantics<java.lang.Double>
pos
- the number of positive votesneg
- the number of negative votespublic java.lang.Double and(java.lang.Double arg1, java.lang.Double arg2)
AbstractSocialSemantics
and
in class AbstractSocialSemantics<java.lang.Double>
arg1
- some value in Larg2
- some value in Lpublic java.lang.Double or(java.lang.Double arg1, java.lang.Double arg2)
AbstractSocialSemantics
or
in class AbstractSocialSemantics<java.lang.Double>
arg1
- some value in Larg2
- some value in Lpublic java.lang.Double neg(java.lang.Double arg)
AbstractSocialSemantics
neg
in class AbstractSocialSemantics<java.lang.Double>
arg
- some value in Lpublic int compare(java.lang.Double arg0, java.lang.Double arg1)
compare
in interface java.util.Comparator<java.lang.Double>
compare
in class AbstractSocialSemantics<java.lang.Double>