ml-array-rescale
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.3.0](https://github.com/mljs/array/compare/ml-array-rescale@1.2.2...ml-array-rescale@1.3.0) (2020-04-02) | ||
### Features | ||
* add maxValue in normed max algo and improve speed ([4c01258](https://github.com/mljs/array/commit/4c012584f7ddaee221921a97b2bc142cc93b6f84)) | ||
## [1.2.2](https://github.com/mljs/array/compare/ml-array-rescale@1.2.1...ml-array-rescale@1.2.2) (2019-08-30) | ||
@@ -8,0 +19,0 @@ |
@@ -0,5 +1,12 @@ | ||
import isArray from 'is-any-array'; | ||
import max from 'ml-array-max'; | ||
import min from 'ml-array-min'; | ||
import isArray from 'is-any-array'; | ||
/** | ||
* | ||
* @param {Array} input | ||
* @param {object} [options={}] | ||
* @param {Array} [options.output=[]] specify the output array, can be the input array for in place modification | ||
*/ | ||
function rescale(input) { | ||
@@ -6,0 +13,0 @@ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; |
@@ -5,6 +5,12 @@ 'use strict'; | ||
var isArray = _interopDefault(require('is-any-array')); | ||
var max = _interopDefault(require('ml-array-max')); | ||
var min = _interopDefault(require('ml-array-min')); | ||
var isArray = _interopDefault(require('is-any-array')); | ||
/** | ||
* | ||
* @param {Array} input | ||
* @param {object} [options={}] | ||
* @param {Array} [options.output=[]] specify the output array, can be the input array for in place modification | ||
*/ | ||
function rescale(input, options = {}) { | ||
@@ -11,0 +17,0 @@ if (!isArray(input)) { |
{ | ||
"name": "ml-array-rescale", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"description": "Rescale an array into a range", | ||
@@ -28,3 +28,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "6a3b7e1b0fab7f3996b9af3a75d6234a68c9e4d0" | ||
"gitHead": "767a39f38806810ec11bf3676948999500e35a36" | ||
} |
@@ -0,5 +1,11 @@ | ||
import isArray from 'is-any-array'; | ||
import max from 'ml-array-max'; | ||
import min from 'ml-array-min'; | ||
import isArray from 'is-any-array'; | ||
/** | ||
* | ||
* @param {Array} input | ||
* @param {object} [options={}] | ||
* @param {Array} [options.output=[]] specify the output array, can be the input array for in place modification | ||
*/ | ||
export default function rescale(input, options = {}) { | ||
@@ -6,0 +12,0 @@ if (!isArray(input)) { |
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
11319
216