Skip to content

This Matlab function performs the numerical inversion of a symbolic expression representing a Characteristic function of a discrete distribution, and outputs the discrete CDF over a custom range.

License

segmentation-fault/davies-inversion

Repository files navigation

davies-inversion

These Matlab functions perform the numerical inversion of a symbolic expression representing a Characteristic function of a discrete/continuous distribution, and outputs the discrete/continuous CDF over a custom range. Files:

  • Davies_inversion_discrete.m : Function performing the inversion for discrete RVs
  • example_discrete.m : Script demonstrating how to use the function for discrete RVs
  • Davies_inversion_continuous.m : Function performing the inversion for continuous RVs
  • example_continuous.m : Script demonstrating how to use the function for continuous RVs.

It needs the Matlab (R) Symbolic Toolbox. Tested on Matlab r2016b and r2017b.

Copyright (C) 2017 Antonio Franco

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.

About

This Matlab function performs the numerical inversion of a symbolic expression representing a Characteristic function of a discrete distribution, and outputs the discrete CDF over a custom range.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages