Package org.oristool.simulator.samplers
Class MetropolisHastings
java.lang.Object
org.oristool.simulator.samplers.MetropolisHastings
- All Implemented Interfaces:
Sampler
Sampler for general PDFs using the Metropolis-Hastings algorithm.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionComputes the next sample according to the Metropolis-Hastings algorithm.Returns the next sample.
-
Constructor Details
-
MetropolisHastings
Builds a sampler for the given function.- Parameters:
f
- a PDF function
-
-
Method Details