Skip to content

Commit

Permalink
publish 5.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aozisik committed Nov 21, 2024
1 parent ee126f7 commit 55e6c11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "labkar-algorithms",
"version": "5.0.0",
"version": "5.3.1",
"description": "Labkar Algorithms",
"main": "dist/lib.js",
"author": "ODTÜ PAL",
Expand Down
8 changes: 5 additions & 3 deletions src/homogenity/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export function homogenity(results: HomogenityTestResult[], r: number) {
if (results[0].values.length !== 2) {
throw new Error(
'We currently only support two values per test. You provided ' +
results[0].values.length +
' values.'
results[0].values.length +
' values.'
);
}

Expand All @@ -43,7 +43,7 @@ export function homogenity(results: HomogenityTestResult[], r: number) {
deltaPow: Math.pow(Math.abs(result.values[0] - result.values[1]), 2),
}));

const xAvg = average(enrichedResults.map((r) => r.avg))
const xAvg = average(enrichedResults.map((r) => r.avg));

const sd = round(
sampleStandardDeviation(enrichedResults.map((r) => r.avg)),
Expand Down Expand Up @@ -78,6 +78,8 @@ export function homogenity(results: HomogenityTestResult[], r: number) {
sw,
ss2,
ss,
fValues,
sigmaAllow2,
c,
cSqrt,
homogenity,
Expand Down

0 comments on commit 55e6c11

Please sign in to comment.