Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vx/stats

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vx/stats - npm Package Compare versions

Comparing version 0.0.193-alpha.0 to 0.0.193-alpha.1

esm/BoxPlot.js

4

esm/index.js

@@ -1,3 +0,3 @@

export { default as BoxPlot } from './boxplot/BoxPlot';
export { default as ViolinPlot } from './violinplot/ViolinPlot';
export { default as BoxPlot } from './BoxPlot';
export { default as ViolinPlot } from './ViolinPlot';
export { default as computeStats } from './util/computeStats';

@@ -15,8 +15,8 @@ export default function computeStats(numericalArray) {

var binWidth = 2 * IQR * Math.pow(sampleSize - outliers.length, -1 / 3);
var binNum = Math.round((max - min) / binWidth);
var actualBinWidth = (max - min) / binNum;
var bins = new Array(binNum + 2).fill(0);
var values = new Array(binNum + 2).fill(min);
var binCount = Math.round((max - min) / binWidth);
var actualBinWidth = (max - min) / binCount;
var bins = new Array(binCount + 2).fill(0);
var values = new Array(binCount + 2).fill(min);
for (var i = 1; i <= binNum; i += 1) {
for (var i = 1; i <= binCount; i += 1) {
values[i] += actualBinWidth * (i - 0.5);

@@ -23,0 +23,0 @@ }

@@ -6,7 +6,7 @@ "use strict";

var _BoxPlot = _interopRequireDefault(require("./boxplot/BoxPlot"));
var _BoxPlot = _interopRequireDefault(require("./BoxPlot"));
exports.BoxPlot = _BoxPlot.default;
var _ViolinPlot = _interopRequireDefault(require("./violinplot/ViolinPlot"));
var _ViolinPlot = _interopRequireDefault(require("./ViolinPlot"));

@@ -13,0 +13,0 @@ exports.ViolinPlot = _ViolinPlot.default;

@@ -20,8 +20,8 @@ "use strict";

var binWidth = 2 * IQR * Math.pow(sampleSize - outliers.length, -1 / 3);
var binNum = Math.round((max - min) / binWidth);
var actualBinWidth = (max - min) / binNum;
var bins = new Array(binNum + 2).fill(0);
var values = new Array(binNum + 2).fill(min);
var binCount = Math.round((max - min) / binWidth);
var actualBinWidth = (max - min) / binCount;
var bins = new Array(binCount + 2).fill(0);
var values = new Array(binCount + 2).fill(min);
for (var i = 1; i <= binNum; i += 1) {
for (var i = 1; i <= binCount; i += 1) {
values[i] += actualBinWidth * (i - 0.5);

@@ -28,0 +28,0 @@ }

{
"name": "@vx/stats",
"version": "0.0.193-alpha.0",
"version": "0.0.193-alpha.1",
"description": "vx stats box violin",

@@ -8,2 +8,3 @@ "sideEffects": false,

"module": "esm/index.js",
"types": "lib/index.d.ts",
"files": [

@@ -34,4 +35,7 @@ "lib",

"dependencies": {
"@vx/group": "0.0.193-alpha.0",
"@vx/scale": "0.0.193-alpha.0",
"@types/classnames": "^2.2.9",
"@types/d3-shape": "^1.3.2",
"@types/react": "*",
"@vx/group": "0.0.193-alpha.1",
"@vx/scale": "0.0.193-alpha.1",
"classnames": "^2.2.5",

@@ -42,3 +46,3 @@ "d3-shape": "^1.2.0",

"peerDependencies": {
"react": "^15.0.0-0 || ^16.0.0-0"
"react": "^16.3.0-0"
},

@@ -48,3 +52,3 @@ "publishConfig": {

},
"gitHead": "8fb99e77e64fa9c319c0addc2a3fbf61e64885cc"
"gitHead": "a26fe227eeb3b1264b8419d43ed5a7deed7a8111"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc