MetropolisHastingTTryGenerate Method (T)
Attempts to generate a new observation from the target
distribution, storing its value in the Current
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax Request Example
public bool TryGenerate(
out T sample
Public Function TryGenerate (
<OutAttribute> ByRef sample As T()
) As Boolean
- Type: T
A new observation, if the method has succeed; otherwise, null.
True if the sample was successfully generated; otherwise, returns false.