abishekrsrikaanth / normalize-value
Normalizes a value according to the specified steps, using feature scaling.
1.0
2018-04-01 06:31 UTC
Requires
- php: >=5.6
- lodash-php/lodash-php: dev-master
This package is auto-updated.
Last update: 2024-08-14 05:54:54 UTC
README
Normalizes a value according to the specified steps, using feature scaling.
Install
$ composer require abishekrsrikaanth/normalize-value
Usage
$normalizedValue = normalize_value(500, [ ["value" => 0, "norm" => 1], ["value" => 1000, "norm" => 0] ]); echo $normalizedValue; //0.5
License
normalize-value © Technicaliti, Released under the MIT License.