# ARRAY SCALER
## Introduction
A simple python tool for scaling and rescaling arrays:
## Installation
To install Array Scaler, run the following command:
```bash
pip install -e '.[lint, test]'
```
## Usage
Here is a simple example of how to use Array Scaler:
```python
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
Raw data
{
"_id": null,
"home_page": "",
"name": "arrayscaler",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": "",
"keywords": "computation,maths,numerical operation",
"author": "",
"author_email": "Eloghosa Ikponmwoba <eloghosaefficiency@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/c5/78/11c428eb83c0278dd88ea21db968b1d400bd0bc4c5f335da6c9a784ddf35/arrayscaler-0.1.1.tar.gz",
"platform": null,
"description": "# ARRAY SCALER\n\n## Introduction\nA simple python tool for scaling and rescaling arrays:\n\n## Installation\n\nTo install Array Scaler, run the following command:\n\n```bash\npip install -e '.[lint, test]' \n```\n\n## Usage\n\nHere is a simple example of how to use Array Scaler:\n\n```python\nfrom arrayscaler.arrayscaler import ScalingHelper\nimport numpy as np\n\n# Scaling integers (5) with a lower limit of 0 and upper limit of 10\nprint(ScalingHelper.scale(5, 0, 10))\n\n# Scaling numpy array\nprint(ScalingHelper.scale(np.array([1,3,4,5,3,2]), 0, 2))\n\n# Rescaling the scaled numpy array\nprint(ScalingHelper.rescale(ScalingHelper.scale(np.array([1,3,4,5,3,2]), 0, 2), 0, 2))\n```\n\nThe `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.\n\n## Contributing",
"bugtrack_url": null,
"license": "MIT License",
"summary": "A simple python code for Scale arrays",
"version": "0.1.1",
"project_urls": null,
"split_keywords": [
"computation",
"maths",
"numerical operation"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8ced7e724269ae3b5a2c4d48447f8078a34dd967e804f5346e0799d61483904d",
"md5": "de6afad4da09c9090f9d177c20b27704",
"sha256": "df48f3dc7e389b50381d330492031ae8d12319bfc0272c1e0e6d3a7c3ea51ec3"
},
"downloads": -1,
"filename": "arrayscaler-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "de6afad4da09c9090f9d177c20b27704",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 2419,
"upload_time": "2024-01-05T19:51:17",
"upload_time_iso_8601": "2024-01-05T19:51:17.646397Z",
"url": "https://files.pythonhosted.org/packages/8c/ed/7e724269ae3b5a2c4d48447f8078a34dd967e804f5346e0799d61483904d/arrayscaler-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c57811c428eb83c0278dd88ea21db968b1d400bd0bc4c5f335da6c9a784ddf35",
"md5": "7ddebfc6b8f5f3f65bb13645f9f5fe6b",
"sha256": "487f8fbdf2945372bbf6b7940f7a4ad86ade38241541e8497c5ef09556911feb"
},
"downloads": -1,
"filename": "arrayscaler-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "7ddebfc6b8f5f3f65bb13645f9f5fe6b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 3486,
"upload_time": "2024-01-05T19:51:19",
"upload_time_iso_8601": "2024-01-05T19:51:19.175446Z",
"url": "https://files.pythonhosted.org/packages/c5/78/11c428eb83c0278dd88ea21db968b1d400bd0bc4c5f335da6c9a784ddf35/arrayscaler-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-05 19:51:19",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "arrayscaler"
}