.DESLib.RandomLib.Variates.Continuous.Continuous

Information

Continuous

Empirical Continuous probability distribution function.

Syntax

Continuous(g,p[:],v[:])

Description

This function generates random variates following the Empirical Continuous distribution function described by the parameters p and v.
Parameter p represents the list of cummulative probabilities related with the values in v.
Length of p and v must be the same.

The following figure graphically shows the empirical discrete distribution.

continuous

Examples

 Continuous(g,{0.2,0.4,0.6,0.8,1},{1,2,3,4,5});


Interface

function Continuous
  input CMRG.RngStream g;
  input Real p[:];
  input Real v[:];
  output Real value;
  output CMRG.RngStream gout;
end Continuous;

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