public class ACQ_Bias
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ACQ_Network |
network
Network of the bias, including both variables and constraints
|
Constructor and Description |
---|
ACQ_Bias(ACQ_Network network)
Constructor of the bias from a network
|
Modifier and Type | Method and Description |
---|---|
int |
computeMinArity()
Returns the size of the smallest scope of this bias
|
ACQ_ConstraintSet |
getConstraints()
Returns the set of constraints of this bias
|
(package private) ACQ_ConstraintSet |
getKappa(ACQ_Query query_bgd)
Returns the set of constraints violated by query_bgd
|
(package private) ACQ_Network |
getProjection(ACQ_Scope varSet)
Returns a subnet of this bias.
|
ACQ_Scope |
getVars()
Returns the variables of this bias
|
(package private) void |
reduce(ACQ_ConstraintSet temp_kappa)
Remove a set of constraints contained into this bias
|
void |
reduce(ACQ_Query e)
Remove a set of constraints contained into this bias
|
protected ACQ_Network network
public ACQ_Bias(ACQ_Network network)
network
- Networkpublic int computeMinArity()
public ACQ_Scope getVars()
public ACQ_ConstraintSet getConstraints()
ACQ_ConstraintSet getKappa(ACQ_Query query_bgd)
query_bgd
- Positive or negative examplevoid reduce(ACQ_ConstraintSet temp_kappa)
Remove a set of constraints contained into this bias
Take a set of constraints as parameter
temp_kappa
- set of constraints to remove from this biaspublic void reduce(ACQ_Query e)
Remove a set of constraints contained into this bias
Take as parameter an example (positive or negative)
Calculate the kappa of e and remove it from this bias
e
- Positive or negative exampleACQ_Network getProjection(ACQ_Scope varSet)
Returns a subnet of this bias. This subnet has the specified scope as scope and the set of constraints whose scope is included in varSet
varSet
- ACQ_Scope