public class MetropolisHastings
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static NetworkSamples |
getPosteriorSamples(BayesianNetwork bayesNet,
java.util.List<? extends Vertex> fromVertices,
int sampleCount) |
static NetworkSamples |
getPosteriorSamples(BayesianNetwork bayesNet,
java.util.List<? extends Vertex> fromVertices,
int sampleCount,
KeanuRandom random) |
public static NetworkSamples getPosteriorSamples(BayesianNetwork bayesNet, java.util.List<? extends Vertex> fromVertices, int sampleCount)
public static NetworkSamples getPosteriorSamples(BayesianNetwork bayesNet, java.util.List<? extends Vertex> fromVertices, int sampleCount, KeanuRandom random)
bayesNet
- a bayesian network containing latent verticesfromVertices
- the vertices to include in the returned samplessampleCount
- number of samples to take using the algorithmrandom
- the source of randomness