by
84k 18
0
5
1,271
7
Top 1% !
Popular
Famous
Tagged
Specified
Popularity: 26196th place

Published on:

Architecturex86_64
LanguageC#
Windows VersionWindows7

Discrete: Creates a new <see cref="MetropolisHasting"/> sampler using symmetric geometric distributions             as the parameter proposal generation priors.

Creates a new <see cref="MetropolisHasting"/> sampler using symmetric geometric distributions
  as the parameter proposal generation priors. 

 
<param name="dimensions">The number of dimensions in each observation.</param>
<param name="distribution">The target distribution whose samples should be generated.</param>
 
<returns>A sampling algorithm that can generate samples from the target distribution.</returns>
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1456097/Discrete--Creates-a-new--see-cref--Metro?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
/// <summary> /// Creates a new <see cref="MetropolisHasting"/> sampler using symmetric geometric distributions /// as the parameter proposal generation priors. /// </summary> /// /// <param name="dimensions">The number of dimensions in each observation.</param> /// <param name="distribution">The target distribution whose samples should be generated.</param> /// /// <returns>A sampling algorithm that can generate samples from the target distribution.</returns> /// public static MetropolisHasting<int, Independent<SymmetricGeometricDistribution>, T> Discrete<T>(int dimensions, T distribution) where T : IMultivariateDistribution<int[]> { return new MetropolisHasting<int, Independent<SymmetricGeometricDistribution>, T>( distribution, new Independent<SymmetricGeometricDistribution>(dimensions, () => new SymmetricGeometricDistribution(0.5))); }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus