math-helper-functions
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -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.<number></code> | ||
@@ -161,3 +161,3 @@ - [.calcHistogram(array, [numberOfBins], [property])](#MathFunctions.calcHistogram) ⇒ <code>Array.<number></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 | |
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
36413