Click or drag to resize
Accord.NET (logo)

MetropolisHastingTObservation, TProposalDistributionInitialize Method (Int32, FuncTObservation, Double, TProposalDistribution)

Initializes the algorithm.

Namespace:  Accord.Statistics.Distributions.Sampling
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
protected void Initialize(
	int dimensions,
	Func<TObservation[], double> logDensity,
	TProposalDistribution proposal
)
Request Example View Source

Parameters

dimensions
Type: SystemInt32
logDensity
Type: SystemFuncTObservation, Double
proposal
Type: TProposalDistribution
See Also