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

math-helper-functions

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

math-helper-functions - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

4

index.js

@@ -203,3 +203,3 @@ const {sum, max, min, mean, median, histogram} = require('d3-array');

* @param {number} [numOfBins] Number of bins to use (optional)
* @returns {object} Distribution of the array's values
* @returns {{labels: string[], data: number[]}} Distribution of the array's values
* @memberof MathFunctions

@@ -218,3 +218,3 @@ */

labels: [],
datasets: [],
data: [],
}

@@ -221,0 +221,0 @@ );

{
"name": "math-helper-functions",
"version": "1.6.1",
"version": "1.6.2",
"description": "Helper with misc. math functions such as sums, averages, max, min, etc",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,3 +18,3 @@ <a name="MathFunctions"></a>

- [.calcPercent(toCalc, total)](#MathFunctions.calcPercent) ⇒ <code>number</code>
- [.calcDistribution(array, [numOfBins])](#MathFunctions.calcDistribution) ⇒ <code>object</code>
- [.calcDistribution(array, [numOfBins])](#MathFunctions.calcDistribution) ⇒ <code>Object</code>
- [.calcQuartiles(array, [property])](#MathFunctions.calcQuartiles) ⇒ <code>Array.&lt;number&gt;</code>

@@ -161,3 +161,3 @@ - [.calcHistogram(array, [numberOfBins], [property])](#MathFunctions.calcHistogram) ⇒ <code>Array.&lt;number&gt;</code>

### MathFunctions.calcDistribution(array, [numOfBins]) ⇒ <code>object</code>
### MathFunctions.calcDistribution(array, [numOfBins]) ⇒ <code>Object</code>

@@ -167,3 +167,3 @@ Gets array distribution

**Kind**: static method of [<code>MathFunctions</code>](#MathFunctions)
**Returns**: <code>object</code> - Distribution of the array's values
**Returns**: <code>Object</code> - Distribution of the array's values

@@ -170,0 +170,0 @@ | Param | Type | Description |

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