public abstract class FormulaSampler<T extends Formula>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAXIMAL_FORMULA_LENGTH
This constant specifies the default length for sampled
formulas.
|
private Signature |
signature
The signature of this sampler.
|
Constructor and Description |
---|
FormulaSampler(Signature signature)
Creates a new formula sampler for the given
signature.
|
Modifier and Type | Method and Description |
---|---|
Signature |
getSignature()
Returns the signature of this sampler.
|
T |
randomSample()
This method randomly samples a single formula of the given signature
with the default maximal formula length.
|
abstract T |
randomSample(int formula_length)
This method randomly samples a single formula of the given signature
with the given maximal formula length.
|
java.util.Set<T> |
randomSample(int formula_length,
int numFormulas)
This method randomly samples a total of "numFormulas" of the given
signature and maximal formula length.
|
private Signature signature
public static final int DEFAULT_MAXIMAL_FORMULA_LENGTH
public FormulaSampler(Signature signature)
signature
- a signature.public abstract T randomSample(int formula_length)
formula_length
- the maximal length of the formula to be sampled.public T randomSample()
public java.util.Set<T> randomSample(int formula_length, int numFormulas)
formula_length
- the maximal length of the formulas to be sampled.numFormulas
- the number of formulas to be sampled.public Signature getSignature()