Click or drag to resize
Accord.NET (logo)

MetropolisHastingContinuousT Method (Int32, T)

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
Syntax
public static MetropolisHasting<double, Independent<NormalDistribution>, T> Continuous<T>(
	int dimensions,
	T distribution
)
where T : Object, IMultivariateDistribution<double[]>
Request Example View Source

Parameters

dimensions
Type: SystemInt32
The number of dimensions in each observation.
distribution
Type: T
The target distribution whose samples should be generated.

Type Parameters

T

Return Value

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