|
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
)
Public Function TryGenerate (
<OutAttribute> ByRef sample As T()
) As Boolean
Request Example
View SourceParameters
- sample
- Type: T
A new observation, if the method has succeed; otherwise, null.
Return Value
Type:
BooleanTrue if the sample was successfully generated; otherwise, returns false.
See Also