This function returns a number according to a discrete distribution.
For more details of this distribution see Wikipedia.
function quantile extends Modelica.Math.Distributions.Interfaces.partialQuantile; input Real x[:] = {0, 1} "Discrete values to be chosen from" annotation( Dialog); input Real p[size(x, 1)] = ones(size(x, 1))/size(x, 1) "The probabilities of the discrete values" annotation( Dialog); end quantile;