reverse-shooting

Matlab scripts for reverse shooting
Log | Files | Refs | README

chicdf.m (240B)


      1 % chicdf.m -- Calculates F(x) for the chisquare distribution
      2 %  x = ordinate
      3 %  n = dof
      4 %  The cdf is the integral from 0 to x of chipdf function
      5 %
      6 %        From Numerical Recipes, p. 186
      7 
      8 function cdf = chicdf(x,n)
      9 
     10 cdf=gammainc(x/2,n/2);