deno.land / x / simplestatistic@v7.7.1 / test / sum_nth_power_deviations.test.js

sum_nth_power_deviations.test.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
/* eslint no-shadow: 0 */
const test = require("tap").test;const ss = require("../");
test("sumNthPowerDeviations", function (t) { t.equal(ss.sumNthPowerDeviations([0, 0, 0], 2), 0); t.equal(ss.sumNthPowerDeviations([0, 1], 2), 0.5); t.equal(ss.sumNthPowerDeviations([0, 1], 3), 0); t.equal(ss.sumNthPowerDeviations([0, 1, 2], 2), 2); t.end();});
simplestatistic

Version Info

Tagged at
2 years ago