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: 2024-11-14 06:20:09 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.