.Noise.PDF.PDF_Discrete

Information

A random number with discrete values of given probability

Interface

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;

Revisions

Developed 2014 at the DLR Institute of System Dynamics and Control


Generated at 2024-05-24T18:15:57Z by OpenModelicaOpenModelica 1.22.4 using GenerateDoc.mos