time-to-botec/squiggle/node_modules/jstat/test/vector/covariance-test.js
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

20 lines
410 B
JavaScript

var vows = require('vows');
var assert = require('assert');
var suite = vows.describe('jStat.covariance');
require('../env.js');
suite.addBatch({
'covariance': {
'topic': function() {
return jStat;
},
'return basic covariance': function(jStat) {
assert.equal(jStat.covariance([1, 2, 3, 4], [4, 5, 6, 7]),
1.6666666666666667);
}
}
});
suite.export(module);