fix cdf function
Merge pull request #25 from kwakayama/master

fix cdf function