@tracerbench/stats
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -140,3 +140,3 @@ "use strict"; | ||
const ci = confidence_interval_1.confidenceInterval(control, experiment, confidenceLevel); | ||
const isSig = (ci.lower < 0 && 0 < ci.upper) || | ||
const isCISig = (ci.lower < 0 && 0 < ci.upper) || | ||
(ci.lower > 0 && 0 > ci.upper) || | ||
@@ -146,2 +146,4 @@ (ci.lower === 0 && ci.upper === 0) | ||
: true; | ||
// ci sign must match on lower and upper bounds and pValue < 5% | ||
const isSig = isCISig && ci.pValue < 0.05; | ||
return { | ||
@@ -148,0 +150,0 @@ min: Math.round(Math.ceil(ci.lower * 100) / 100), |
{ | ||
"name": "@tracerbench/stats", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "Stats class written in TS-Node", | ||
@@ -66,3 +66,3 @@ "keywords": [ | ||
"engine": "node >= 10", | ||
"gitHead": "a2256a42d9ed92cff29639cb614e0cea8097d2b3" | ||
"gitHead": "8ce3e8bfac86d521eea761e7406b845a48087549" | ||
} |
@@ -298,3 +298,3 @@ import { cross, histogram, mean, quantile } from 'd3-array'; | ||
const ci = confidenceInterval(control, experiment, confidenceLevel); | ||
const isSig = | ||
const isCISig = | ||
(ci.lower < 0 && 0 < ci.upper) || | ||
@@ -305,2 +305,4 @@ (ci.lower > 0 && 0 > ci.upper) || | ||
: true; | ||
// ci sign must match on lower and upper bounds and pValue < 5% | ||
const isSig = isCISig && ci.pValue < 0.05; | ||
return { | ||
@@ -307,0 +309,0 @@ min: Math.round(Math.ceil(ci.lower * 100) / 100), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
232812
1401