©
"Raised" cosine distribution
  Simulates (Monte Carlo) data from a "raised" cosine distribution.
2024.May.16 13:27:07
μ, a (a := |a|) Mean and half-width of distribution. •
lgN, .seed (Sugg., lgN ≲ 6) No. (log10) of trials, random no. gener. seed. •
klass No. of histo. classes. •
Show values Shows the coordinates of the graph. •

Simulates, via Monte Carlo (limited time), data from a "raised" cosine pdf.  Its formulas, with β = (xμ)⁄a, are f(x) = (1⁄a).cos²[(π⁄2) β] (inflection points at μ ± a ⁄ 2), and F(x) = ½ [1 + β + (1⁄π) sin(π β)]. Solving this equation (given random F) for β requires a numerical method, relatively slow, as (used) bisection, or of uncertain convergence, as Newton-Raphson.

Plots the density function (pdf), f(x), the simulated curve, and the probability function (cdf), F(x).

References: Plate: RaisedCosine

• Google "Monte Carlo method"

Assignment, ":=" (Computer Science, Wikipedia).

• "Computing with Accents, Symbols & Foreign Scripts" (PennState), such as '≲' for '~<'. (Symbol OK for: Chrome, Mozilla(s).  Mediocre for: Safari, Opera.  Wrong for: IE, as usual.)

• Petko Yotov's Latin to Cyrillic alphabet online text converter (+calendars, softw.)

• 1879-11-29: Krylov, Nikolai Mitrofanovich (Николай Митрофанович Крылов) (1955-05-11).

 
 
Valid HTML 4.01! IST http://web.tecnico.ulisboa.pt/~mcasquilho/compute/or/Fx-simraisedcosine.php
Created: 2012-11-29 — Last modified: 2018-05-12