by
84k 18
1
4
2,018
2
Top 1% !
Famous
Tagged
Specified
Popularity: 12577th place

Published on:

Architecturex86_64
LanguageC#
Windows VersionWindows7

Uniform: Constructs a new uniform discrete distribution.

Constructs a new uniform discrete distribution.

 
<param name="a">
  The integer value where the distribution starts, also
  known as <c>a</c>. Default value is 0.</param>
<param name="b">
  The integer value where the distribution ends, also 
  known as <c>b</c>.</param>
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1456192/Uniform--Constructs-a-new-uniform-discre?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> /// Constructs a new uniform discrete distribution. /// </summary> /// /// <param name="a"> /// The integer value where the distribution starts, also /// known as <c>a</c>. Default value is 0.</param> /// <param name="b"> /// The integer value where the distribution ends, also /// known as <c>b</c>.</param> /// public static GeneralDiscreteDistribution Uniform(int a, int b) { if (a > b) { throw new ArgumentOutOfRangeException("b", "The starting number a must be lower than b."); } return new GeneralDiscreteDistribution(a, b - a + 1); }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus