Click or drag to resize
Accord.NET (logo)

MetropolisHastingContinuous Method (Int32, FuncDouble, Double)

Creates a new MetropolisHasting sampler using independent Normal 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<double, Independent<NormalDistribution>> Continuous(
	int dimensions,
	Func<double[], double> logDensity
Request Example View Source


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

Return Value

Type: MetropolisHastingDouble, IndependentNormalDistribution
A sampling algorithm that can generate samples from the target distribution.
See Also