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

ml-array-rescale

Package Overview
Dependencies
Maintainers
6
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-array-rescale - npm Package Compare versions

Comparing version 1.2.2 to 1.3.0

11

CHANGELOG.md

@@ -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 @@

9

lib-es6/index.js

@@ -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)) {

4

package.json
{
"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)) {

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