I am trying to generate random numbers with exponential distribution. I have found Math.NET NuGet package. It looks nice, but I can not figure out how to generate a vector of these kind of data.
I have included the reference and tried something like this (inspired by official website) - I know that Uniform will not generate Exponential values.:
Generate.Uniform(100);
However I get: "Generate is does not exist in current context. "
I have also tried:
Random rnd= new Random();
double[] samples;
double lambda = 0.1;
Exponential.Samples(rnd, samples,lambda);
Here I get "Invalid expression term ')' " and " ; expected" on the last line.