Click or drag to resize
Accord.NET (logo)

MetropolisHastingTTryGenerate Method (T)

Attempts to generate a new observation from the target distribution, storing its value in the Current property.

Namespace:  Accord.Statistics.Distributions.Sampling
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public bool TryGenerate(
	out T[] sample
)
Request Example View Source

Parameters

sample
Type: T
A new observation, if the method has succeed; otherwise, null.

Return Value

Type: Boolean
True if the sample was successfully generated; otherwise, returns false.
See Also