Socket
Socket
Sign inDemoInstall

@tracerbench/stats

Package Overview
Dependencies
7
Maintainers
3
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.3.5 to 5.3.6

7

dist/src/confidence-interval.js

@@ -6,2 +6,3 @@ "use strict";

const jStat = require("jstat");
const utils_1 = require("./utils");
/**

@@ -77,5 +78,5 @@ * Difference of x and y

asPercent: {
percentMin: +((deltas[lowerU] / aMedian) * 100).toPrecision(4),
percentMedian: (_a = +((medianDeltas / aMedian) * 100).toPrecision(4)) !== null && _a !== void 0 ? _a : 0,
percentMax: +((deltas[upperU] / aMedian) * 100).toPrecision(4)
percentMin: utils_1.toNearestHundreth((deltas[lowerU] / aMedian) * 100),
percentMedian: (_a = utils_1.toNearestHundreth((medianDeltas / aMedian) * 100)) !== null && _a !== void 0 ? _a : 0,
percentMax: utils_1.toNearestHundreth((deltas[upperU] / aMedian) * 100)
}

@@ -82,0 +83,0 @@ };

@@ -37,3 +37,3 @@ "use strict";

this.confidenceInterval = this.getConfidenceInterval(this.controlSorted, this.experimentSorted, confidenceLevel);
this.estimator = Math.round(this.getHodgesLehmann(this.controlSorted, this.experimentSorted));
this.estimator = utils_1.toNearestHundreth(this.getHodgesLehmann(this.controlSorted, this.experimentSorted));
this.sevenFigureSummary = {

@@ -40,0 +40,0 @@ control: this.getSevenFigureSummary(this.controlSorted),

{
"name": "@tracerbench/stats",
"version": "5.3.5",
"version": "5.3.6",
"description": "Stats class written in TS-Node",

@@ -66,3 +66,3 @@ "keywords": [

"engine": "node >= 10",
"gitHead": "40719b764fb97dea8bc1b9f561988b4bf5d29083"
"gitHead": "185adcb7eff9beb637dd03789c4d50493546331e"
}

@@ -5,2 +5,3 @@ import { median } from 'd3-array';

import type { IConfidenceInterval } from './stats';
import { toNearestHundreth } from './utils';
/**

@@ -102,7 +103,7 @@ * Difference of x and y

asPercent: {
percentMin: +((deltas[lowerU] / aMedian) * 100).toPrecision(4),
percentMedian: +((medianDeltas / aMedian) * 100).toPrecision(4) ?? 0,
percentMax: +((deltas[upperU] / aMedian) * 100).toPrecision(4)
percentMin: toNearestHundreth((deltas[lowerU] / aMedian) * 100),
percentMedian: toNearestHundreth((medianDeltas / aMedian) * 100) ?? 0,
percentMax: toNearestHundreth((deltas[upperU] / aMedian) * 100)
}
};
}

@@ -147,3 +147,3 @@ import { cross, histogram, mean, quantile } from 'd3-array';

);
this.estimator = Math.round(
this.estimator = toNearestHundreth(
this.getHodgesLehmann(this.controlSorted, this.experimentSorted) as number

@@ -150,0 +150,0 @@ );

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc