var vows = require('vows');
var assert = require('assert');
var suite = vows.describe('jStat.distribution');

require('../env.js');

suite.addBatch({
  'central F distribution': {
    'topic': function() {
      return jStat;
    },
    //Check against R's df(x, df1, df2)
    'check pdf calculation': function(jStat) {
      var tol = 0.0000001;

      var zeroth = jStat.centralF.pdf(0.2, 1, 3);
      assert.isNumber(zeroth);
      assert.epsilon(tol, zeroth, 0.722349);

      var first = jStat.centralF.pdf(1, 100, 100);
      assert.isNumber(first);
      assert.epsilon(tol, first, 1.989731);

      var second = jStat.centralF.pdf(2.5, 50, 200);
      assert.isNumber(second);
      assert.epsilon(tol, second, 0.00003610325);

      var third = jStat.centralF.pdf(0.8, 2, 10);
      assert.isNumber(third);
      assert.epsilon(tol, third, 0.4104423);

      var value = jStat.centralF.pdf(0.4, 3, 10);
      assert.isNumber(value);
      assert.epsilon(tol, value, 0.6733766);
    }
  },
});

suite.export(module);

@@ -395,39 +395,8 @@
 3);%0A
-      assert.isNumber(zeroth);%0A
     
@@ -436,16 +436,16 @@
 22349);%0A
+
 %0A      v
@@ -492,38 +492,8 @@
 0);%0A
-      assert.isNumber(first);%0A
     
@@ -590,39 +590,8 @@
 0);%0A
-      assert.isNumber(second);%0A
     
@@ -691,38 +691,8 @@
 0);%0A
-      assert.isNumber(third);%0A
     
@@ -743,21 +743,22 @@
     var 
-value
+fourth
  = jStat
@@ -788,38 +788,8 @@
 0);%0A
-      assert.isNumber(value);%0A
     
@@ -814,13 +814,14 @@
 ol, 
-value
+fourth
 , 0.
@@ -830,16 +830,17 @@
 33766);%0A
+%0A
     %7D%0A  

Remove unneeded .isNumber calls