From 55e6c115e3b0d089ffe551e6c592561de554f1ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=96zisik?= Date: Thu, 21 Nov 2024 16:07:40 +0100 Subject: [PATCH] publish 5.3.1 --- package.json | 2 +- src/homogenity/index.ts | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 6ae2f08..22aaf2c 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/homogenity/index.ts b/src/homogenity/index.ts index 5c1389e..30d520b 100644 --- a/src/homogenity/index.ts +++ b/src/homogenity/index.ts @@ -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.' ); } @@ -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)), @@ -78,6 +78,8 @@ export function homogenity(results: HomogenityTestResult[], r: number) { sw, ss2, ss, + fValues, + sigmaAllow2, c, cSqrt, homogenity,