Click or drag to resize
Accord.NET (logo)

MetropolisHastingDiscrete Method (Int32, FuncInt32, Double)

Creates a new MetropolisHasting sampler using symmetric geometric distributions as the parameter proposal generation priors.

Namespace:  Accord.Statistics.Distributions.Sampling
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
public static MetropolisHasting<int, Independent<SymmetricGeometricDistribution, int>> Discrete(
	int dimensions,
	Func<int[], double> logDensity
Request Example View Source


Type: SystemInt32
The number of dimensions in each observation.
Type: SystemFuncInt32, Double
A function specifying the log probability density of the distribution to be sampled.

Return Value

Type: MetropolisHastingInt32, IndependentSymmetricGeometricDistribution, Int32
A sampling algorithm that can generate samples from the target distribution.
See Also