|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectLinearBinaryCoreFloat
public final class LinearBinaryCoreFloat
| Field Summary | |
|---|---|
double |
a
|
double |
b
|
double |
c
|
static Logger |
debug
Debug tracer. |
double |
max_a
|
double |
max_b
|
double |
max_c
|
double |
max_x
|
double |
max_y
|
double |
min_a
|
double |
min_b
|
double |
min_c
|
double |
min_x
|
double |
min_y
|
int |
values_seen
|
Invariant |
wrapper
|
double[] |
x_cache
|
double[] |
y_cache
|
| Constructor Summary | |
|---|---|
LinearBinaryCoreFloat(Invariant wrapper)
|
|
| Method Summary | |
|---|---|
InvariantStatus |
add_modified(double x,
double y,
int count)
|
LinearBinaryCoreFloat |
clone()
|
double |
computeConfidence()
|
boolean |
enoughSamples()
|
String |
format_reversed_using(OutputFormat format,
String xname,
String yname)
|
static String |
format_simplify(String str_x,
String str_y,
double a,
double b,
double c)
|
String |
format_using(OutputFormat format,
String xname,
String yname)
|
String |
format_using(OutputFormat format,
String vix,
String viy,
double u,
double v,
double w)
|
static String |
formatTerm(double coeff,
String varname,
boolean first)
|
boolean |
isActive()
Returns whether or not the invariant is currently active. |
boolean |
isExclusiveFormula(LinearBinaryCoreFloat other)
|
boolean |
isFlowable()
LinearBinary can't be flowed because it keeps samples to build the line. |
boolean |
isSameFormula(LinearBinaryCoreFloat other)
|
LinearBinaryCoreFloat |
merge(List<LinearBinaryCoreFloat> cores,
Invariant wrapper)
Merge the linear binary cores in cores to form a new core. |
boolean |
mergeFormulasOk()
In general, we can't merge formulas, but we can merge invariants with too few samples to have formed a line with invariants with enough samples. |
String |
repr()
|
void |
swap()
|
| Methods inherited from class Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Logger debug
public double a
public double b
public double c
public double min_x
public double min_y
public double max_x
public double max_y
public double min_a
public double max_a
public double min_b
public double max_b
public double min_c
public double max_c
public Invariant wrapper
public int values_seen
public double[] x_cache
public double[] y_cache
| Constructor Detail |
|---|
public LinearBinaryCoreFloat(Invariant wrapper)
| Method Detail |
|---|
public LinearBinaryCoreFloat clone()
clone in class Objectpublic void swap()
public boolean isActive()
public boolean isFlowable()
public InvariantStatus add_modified(double x,
double y,
int count)
public boolean enoughSamples()
public double computeConfidence()
public String repr()
public static String formatTerm(double coeff,
String varname,
boolean first)
public String format_using(OutputFormat format,
String vix,
String viy,
double u,
double v,
double w)
public static String format_simplify(String str_x,
String str_y,
double a,
double b,
double c)
public String format_using(OutputFormat format,
String xname,
String yname)
public String format_reversed_using(OutputFormat format,
String xname,
String yname)
public boolean mergeFormulasOk()
public LinearBinaryCoreFloat merge(List<LinearBinaryCoreFloat> cores,
Invariant wrapper)
cores - List of LinearBinary cores to merge. They should
all be permuted to match the variable order in
ppt.public boolean isSameFormula(LinearBinaryCoreFloat other)
public boolean isExclusiveFormula(LinearBinaryCoreFloat other)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||