repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix: use unbiased standard deviation formula
[e-mobility-charging-stations-simulator.git]
/
tests
/
utils
/
StatisticUtils.test.ts
diff --git
a/tests/utils/StatisticUtils.test.ts
b/tests/utils/StatisticUtils.test.ts
index d9aadf0c5e77426f6170104799048ba79533c426..38963dbe97d2c69b27f18766f5be335351d12280 100644
(file)
--- a/
tests/utils/StatisticUtils.test.ts
+++ b/
tests/utils/StatisticUtils.test.ts
@@
-33,6
+33,6
@@
await describe('StatisticUtils test suite', async () => {
});
await it('Verify stdDeviation()', () => {
- expect(stdDeviation([0.25, 4.75, 3.05, 6.04, 1.01, 2.02, 5.03])).toBe(2.
0256064851429216
);
+ expect(stdDeviation([0.25, 4.75, 3.05, 6.04, 1.01, 2.02, 5.03])).toBe(2.
1879050645374383
);
});
});