I ma using mathdotnet form C# in VS2013.
I need to generate a sequence of samples from
IEnumerable<double> Samples(double a, double b)
at
http://numerics.mathdotnet.com/api/MathNet.Numerics.Distributions/Beta.htm#Samples
I do not know how to control the sample size. For exmaple, I only need to get 5000 smaple points from the distribution.
This is my C# code:
Beta betadistr = new Beta(alpha, beta);
list<double> sample = betadistr.samples(alpha, beta);
What is the size of sample ?
And what is the difference between
IEnumerable<double> Samples(double a, double b)
and
IEnumerable<double> Samples(Random rnd, double a, double b)
How to use the rnd to control the sample?