What I would like:
To be able to do draw a number (or a sample) from a probability distribution (real or integer, depending on the distribution).
What it should look like:
proc getRandomFromDistributionX(params : real){
//returns a random value from "DistributionX", given "params", which is the parameters of that distribution
}
proc getRandomSampleFromDistributionX(params : real, n : int){
//returns a random sample from "DistributionX", given "params", which is the parameters of that distribution and "n" which is the sample size
}
Example:
var params = [2.0]; //mean of the Poisson distribution is 2.0
var randomValue = getRandomFromPoisson(params); //a random draw from the Poisson distribution
var randomSample = getRandomSampleFromPoisson(params, 10); //a random sample of size 10 from the Poisson distribution
Use case:
For random graph generation in which we are randomly generating the degree sequence of the vertices in the graph.
What I would like: To be able to do draw a number (or a sample) from a probability distribution (real or integer, depending on the distribution).
What it should look like:
Example:
Use case: For random graph generation in which we are randomly generating the degree sequence of the vertices in the graph.