|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.neu.ccs.bias.BiasCalculator
public class BiasCalculator
Class for calculating max bias and price.
Price and bias for all 255 relations are pre-calculated and stored in maps which are read whenever required. This way we save on calculating price and bias each time a relation is used.
Method Summary | |
---|---|
double |
getBias(int relation)
Calculate bias for the input relation number The maxBias is the value of bias that maximizes the probability function. |
static BiasCalculator |
getInstance()
Get an instance of BiasCalculator class |
edu.neu.ccs.satsolver.PolynomialI |
getPolynomial(int relation)
Gets the bias function for the relation |
double |
getPrice(int relation)
Returns price for the input relation number. |
static void |
p(java.lang.String s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void p(java.lang.String s)
public static BiasCalculator getInstance()
public double getPrice(int relation)
relation
-
public double getBias(int relation)
relation
-
public edu.neu.ccs.satsolver.PolynomialI getPolynomial(int relation)
relation
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |