|
MetropolisHastingDiscreteT Method (Int32, T)
|
Creates a new
MetropolisHasting sampler using symmetric geometric 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<int, Independent<SymmetricGeometricDistribution, int>, T> Discrete<T>(
int dimensions,
T distribution
)
where T : Object, IMultivariateDistribution<int[]>
Public Shared Function Discrete(Of T As {Object, IMultivariateDistribution(Of Integer())}) (
dimensions As Integer,
distribution As T
) As MetropolisHasting(Of Integer, Independent(Of SymmetricGeometricDistribution, Integer), 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:
MetropolisHastingInt32,
IndependentSymmetricGeometricDistribution,
Int32,
TA sampling algorithm that can generate samples from the target distribution.
See Also