public static class AdaptiveImportanceSampler.Configuration extends Object
| Constructor and Description |
|---|
Configuration(Function<TreeAutomaton,RuleWeighting> rwSource)
Creates a new instance with default parameters and based on the given
RuleWeightings
|
| Modifier and Type | Method and Description |
|---|---|
List<TreeSample<Rule>> |
run(TreeAutomaton ta)
Runs an importance sampler once for the given configuration.
|
void |
setDeterministic(boolean deterministic)
Set to true if the underlying automata may be ambiguous.
|
void |
setPopulationSize(int populationSize)
Used to set the population size used in sampling.
|
void |
setRounds(int rounds) |
void |
setSeeds(LongSupplier seeds)
Used to configure the seeds used to initialize the sampler.
|
public Configuration(Function<TreeAutomaton,RuleWeighting> rwSource)
rwSource - public void setDeterministic(boolean deterministic)
deterministic - public void setRounds(int rounds)
rounds - public void setPopulationSize(int populationSize)
populationSize - public void setSeeds(LongSupplier seeds)
seeds - public List<TreeSample<Rule>> run(TreeAutomaton ta)
ta - Copyright © 2017. All rights reserved.