public class ApproxBayesianComp extends Object
Modifier and Type | Field and Description |
---|---|
private AbcController |
controller |
private AbcDistance |
distance |
private double |
epsilon |
private AbcModel |
model |
private int |
numSamplesTaken |
private AbcNamedQuantity |
observedData |
private Map<String,LinkedList<Double>> |
posteriors |
private AbcPriorsSampler |
priors |
Constructor and Description |
---|
ApproxBayesianComp(AbcNamedQuantity observedData,
AbcModel model,
AbcPriorsSampler priors,
double sensitivity)
Create an ABC instance.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Run the ABC algorithm.
|
private void |
save(AbcNamedQuantity prior)
Save the sample taken from the prior as it meets the criteria set for being a posterior sample.
|
private AbcController controller
private AbcDistance distance
private AbcModel model
private AbcPriorsSampler priors
private Map<String,LinkedList<Double>> posteriors
private AbcNamedQuantity observedData
private double epsilon
private int numSamplesTaken
public ApproxBayesianComp(AbcNamedQuantity observedData, AbcModel model, AbcPriorsSampler priors, double sensitivity)
observedData
- the observed data from which the distance will be calculated.model
- the model that generates the data.priors
- the sampler objec that samples from the priors.sensitivity
- the distance cutoff, distance greater than this value will be ignored.public final void run()
private void save(AbcNamedQuantity prior)
prior
- the sampled values from the prior.Copyright © 2015 University of Glasgow. All rights reserved.