analistica/ex-1/landau.h

25 lines
595 B
C
Raw Normal View History

2020-03-24 02:17:39 +01:00
/* This file contains functions to
* compute the Landau distribution
* PDF, CDF and QDF functions.
*/
#pragma once
/* This is a wrapper needed by `landau_cdf` and
* other optimisation functions because the GSL
* routines expect a function with parameters.
2020-03-24 02:17:39 +01:00
*/
double landau_pdf(double x, void* params);
/* The cumulative function of the Landau distribution
* calculated by numerical integration.
*/
double landau_cdf(double x, void* params);
/* The quantile function (inverse CDF) of the Landau
* distribution calculated by numerical root method.
*/
double landau_qdf(double p0);