functioncumulative

Cumulative distribution function of discrete distribution

Extends from Modelica.Math.Distributions.Interfaces.partialTruncatedCumulative (Common interface of truncated cumulative distribution functions).

Information

This function returns the cumulative distribution function according to a discrete distribution in a band.

For more details of this distribution see Wikipedia.

Inputs

TypeNameDefaultDescription
Realu (from partialCumulative)Value over the real axis (-inf < u < inf)
Realu_min (from partialTruncatedCumulative)0Lower limit of u
Realu_max (from partialTruncatedCumulative)1Upper limit of u
Real[:]x{0, 1}Discrete values to be chosen from
Real[size(x, 1)]pones(size(x, 1))/size(x, 1)The probabilities of the discrete values

Outputs

TypeNameDefaultDescription
Realy (from partialCumulative)Value in the range 0 <= y <= 1