CDF
Evaluates the chi-squared CDF.
Controller: CodeCogs
Contents
Dependents
Interface
C++
CDF
doubleCDF( | double | r | |
double | x | ||
bool | upper = false | ) |
There is an error with your graph parameters for CDF with options x=0:10 r=5
Error Message:Function CDF failed. Ensure that: Invalid C++
Example:
#include <stdio.h> #include <codecogs/stats/dists/continuous/chisquared/cdf.h> using namespace Stats::Dists::Continuous::ChiSquared; int main() { for( double x=1; x<10; x+=0.5 ) { printf( "CDF(%1.1f,true) = %f \n", x, CDF( 5, x, true ) ); } return getchar(); }
Output:
CDF(1.0,true) = 0.962566 CDF(1.5,true) = 0.913070 CDF(2.0,true) = 0.849145 CDF(2.5,true) = 0.776495 CDF(3.0,true) = 0.699986 CDF(3.5,true) = 0.623388 CDF(4.0,true) = 0.549416 CDF(4.5,true) = 0.479883 CDF(5.0,true) = 0.415880 CDF(5.5,true) = 0.357946 CDF(6.0,true) = 0.306219 CDF(6.5,true) = 0.260558 CDF(7.0,true) = 0.220640 CDF(7.5,true) = 0.186030 CDF(8.0,true) = 0.156236 CDF(8.5,true) = 0.130748 CDF(9.0,true) = 0.109064 CDF(9.5,true) = 0.090707
Parameters
r the number of degrees of freedom, must be at least 1 x the value at which to evaluate the function, must be positive upper Default value = false
Authors
- Stephen L. Moshier (June 2000)
Updated by Vince Cole and Eduard-Mihai Bentea
Source Code
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.