witkovsky / CharFunTool

MATLAB repository of characteristic functions
MIT License
9 stars 3 forks source link

CharFunTool: The Characteristic Functions Toolbox

MATLAB repository of characteristic functions and tools for their combinations and numerical inversion.

For current status of the MATLAB toolbox see the CharFunTool development available at

For the R version (not an identical clone) of the toolbox see the CharFun package development available at

About

The Characteristic Functions Toolbox (CharFunTool) consists of a set of algorithms for evaluating selected characteristic functions and algorithms for numerical inversion of the combined and/or compound characteristic functions, used to evaluate the cumulative distribution function (CDF), the probability density function (PDF), and/or the quantile function (QF).

The toolbox comprises different inversion algorithms, including those based on the Gil-Pelaez inversion formulae in combination with the simple trapezoidal quadrature rule, or other more sofisticated quadratures and advanced acceleration methods, used for computing the required Fourier transform integrals of oscillatory functions.

Installation and requirements

CharFunTool was developed with MATLAB Version: 9.2 (R2017a).

To install, you can either clone the directory with Git or download a .zip file.

Option 1: Download .zip file

Download a .zip of CharFunTool from

After unzipping, you will need to add CharFunTool to the MATLAB path. You can do this either (a) by typing

addpath(CharFunToolRoot), savepath

where CharFunToolRoot is the path to the unzipped directory, (b) by selecting the CharFunTool directory with the pathtool command, or (c) though the File > Set Path... dialog from the MATLAB menubar.

Option 2: Clone with Git

To clone the CharFunTool repository, first navigate in a terminal to where you want the repository cloned, then type

git clone https://github.com/witkovsky/CharFunTool.git

To use CharFunTool in MATLAB, you will need to add the CharFunTool directory to the MATLAB path as above.

Option 3: Get it from MATLAB File Exchange

View CharFunTool: The Characteristic Functions Toolbox on File Exchange

Getting started

We recommend taking a look at the Examples collection and the detailed helps of the included characteristic functions and the inversion algorithms.

See LICENSE.txt for CharFunTool licensing information.