scipy/scipy — pull request #227 by MrCreosote (2012-05-23 07:31:19+00:00)
Title: Add t-test with unequal variances, bug fix for edge case on all tests 

Added method for t-test with unequal variances. ttest_ind assumes
population variances are equal.

Refactor common code in all 4 t-test methods to _ttest_ind_setup and
_ttest_finish.

Fix bug in all 4 methods. Previous implementation would, if the
difference in means and the denominator of the t-statistic were zero,
set the t-statistic equal to 1. If the difference in means is zero, the
t-statistic should always be zero. Code and respective tests changed to
reflect this.