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))
# Rescaling the scaled numpy array
print(ScalingHelper.rescale(ScalingHelper.scale(np.array([1,3,4,5,3,2]), 0, 2), 0, 2))
The scale method will scale the input array to a range of 0 to 1. The rescale method will rescale the scaled array back to its original range.
Contributing
Metadata
Release files for arrayscaler 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| arrayscaler-0.1.1.tar.gz | 3.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arrayscaler-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.9 kB
Release files / arrayscaler-0.1.1.tar.gz
| Download URL | arrayscaler-0.1.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
487f8fbdf2945372bbf6b7940f7a4ad86ade38241541e8497c5ef09556911feb
|
|
BLAKE2b-256 checksum How to use checksums |
c57811c428eb83c0278dd88ea21db968b1d400bd0bc4c5f335da6c9a784ddf35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / arrayscaler-0.1.1-py3-none-any.whl
| Download URL | arrayscaler-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df48f3dc7e389b50381d330492031ae8d12319bfc0272c1e0e6d3a7c3ea51ec3
|
|
BLAKE2b-256 checksum How to use checksums |
8ced7e724269ae3b5a2c4d48447f8078a34dd967e804f5346e0799d61483904d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for arrayscaler 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.