|
MetropolisHastingContinuousT Method (Int32, T)
|
Creates a new
MetropolisHasting sampler using independent Normal 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<double, Independent<NormalDistribution>, T> Continuous<T>(
int dimensions,
T distribution
)
where T : Object, IMultivariateDistribution<double[]>
Public Shared Function Continuous(Of T As {Object, IMultivariateDistribution(Of Double())}) (
dimensions As Integer,
distribution As T
) As MetropolisHasting(Of Double, Independent(Of NormalDistribution), T)
Request Example
View SourceParameters
- 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:
MetropolisHastingDouble,
IndependentNormalDistribution,
TA sampling algorithm that can generate samples from the target distribution.
See Also