Click or drag to resize
Accord.NET (logo)

MetropolisHastingDiscreteT Method (Int32, T)

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
Syntax
public static MetropolisHasting<int, Independent<SymmetricGeometricDistribution, int>, T> Discrete<T>(
	int dimensions,
	T distribution
)
where T : Object, IMultivariateDistribution<int[]>
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: MetropolisHastingInt32, IndependentSymmetricGeometricDistribution, Int32, T
A sampling algorithm that can generate samples from the target distribution.
See Also