function PDF_Discrete extends Noise.Utilities.Interfaces.PDF; import Noise.Utilities.Math.cumsum; 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 PDF_Discrete;
Developed 2014 at the DLR Institute of System Dynamics and Control