CDF inv
Evaluates the Anglit distribution CDF inverse.
Controller: CodeCogs
Contents
Interface
C++
Excel
CDF Inv
doubleCDF_inv( | double | x | )[inline] |
There is an error with your graph parameters for CDF_inv with options x=0:1
Error Message:Function CDF_inv failed. Ensure that: Invalid C++
Example 1
#include <codecogs/stats/dists/continuous/anglit/cdf_inv.h> #include <iostream> #include <iomanip> #define PRECISION 17 int main() { std::cout << "The values of the Anglit CDF inverse with"; std::cout << std::endl; std::cout << "x = {0, 0.1, 0.2, ... , 0.7, 0.8} are" << std::endl; std::cout << std::endl; for (double x = 0; x < 0.81; x += 0.1) { std::cout << std::setprecision(1); std::cout << "x = " << std::setw(3) << x << " : "; std::cout << std::setprecision(PRECISION); std::cout << Stats::Dists::Continuous::Anglit::CDF_inv(x); std::cout << std::endl; } return 0; }
Output:The values of the Anglit CDF inverse with x = {0, 0.1, 0.2, ... , 0.7, 0.8} are x = 0 : -0.78539816339744828 x = 0.1 : -0.46364760900080609 x = 0.2 : -0.32175055439664213 x = 0.3 : -0.20575842303374392 x = 0.4 : -0.10067896039516533 x = 0.5 : 0 x = 0.6 : 0.10067896039516544 x = 0.7 : 0.20575842303374403 x = 0.8 : 0.32175055439664213
References
- John Burkardt's library of statistical C++ routines, http://www.csit.fsu.edu/~burkardt/cpp_src/prob/prob.html
Parameters
x the argument of the CDF inverse
Returns
- the inverse CDF of the Anglit distribution
Authors
- Lucian Bentea (September 2005)
Source Code
Source code is available when you buy a Commercial licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.