.Modelica_Noise.Math.Distributions.Uniform.quantile

Information

Syntax

Uniform.quantile(u, y_min=0, y_max=1);

Description

This function computes the inverse cumulative distribution function (= quantile) according to a uniform distribution in a band. Input argument u must be in the range:

0 ≤ u ≤ 1

The returned number y is in the range:

y_min ≤ y ≤ y_max

Plot of the function:

For more details, see Wikipedia.

Example

  quantile(0.5)      // = 0.5
  quantile(0.5,-1,1) // = 0

See also

Uniform.density, Uniform.cumulative.

Interface

function quantile
  extends Modelica_Noise.Math.Distributions.Interfaces.partialQuantile;
  input Real y_min = 0 "Lower limit of y" annotation(
    Dialog);
  input Real y_max = 1 "Upper limit of y" annotation(
    Dialog);
end quantile;

Revisions

Date Description
June 22, 2015
Initial version implemented by A. Klöckner, F. v.d. Linden, D. Zimmer, M. Otter.
DLR Institute of System Dynamics and Control


Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos