A simple python code for Scale arrays
Project description
ARRAY SCALER
Introduction
A simple python tool for scaling and rescaling arrays:
Installation
To install Array Scaler, run the following command:
pip install -e '.[lint, test]'
Usage
Here is a simple example of how to use Array Scaler:
from arrayscaler.arrayscaler import ScalingHelper
import numpy as np
# Scaling integers (5) with a lower limit of 0 and upper limit of 10
print(ScalingHelper.scale(5, 0, 10))
# Scaling numpy array
print(ScalingHelper.scale(np.array([1,3,4,5,3,2], 0, 2)))
This will scale the input array to a range of 0 to 1.
Contributing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arrayscaler-0.1.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for arrayscaler-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8619c1eec618652e91e4a99e9657b60f62a26962fd79627824631cf7869c465a |
|
MD5 | f806b46635a84ec6d163e14aaf45470a |
|
BLAKE2b-256 | fa6422dc245faf24978bcc5fe92cd798e0fba4e545a125036ccd37185058b520 |