abishekrsrikaanth/normalize-value

Normalizes a value according to the specified steps, using feature scaling.

1.0 2018-04-01 06:31 UTC

This package is auto-updated.

Last update: 2022-09-14 01:28:54 UTC


README

Last version Donate

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.