No project description provided
Project description
Rescalex
pip install rescalex
rescalex.rescale.Rescale is a python 3 class to implement rescaling of values. Input:
- data = an array of data (or at least a list of [min,max])
- method = rescaling method
- minmax = new scale [min,max]
- params = additional parameters required by some rescaling methods How to use (example): xd = [400.,800.] obj = Rescale(data=xd) to instantiate. By default, this will set method = 'linear' and minmax = [-1.,1.] obj.compute() to the transformation obj.model to show the transformation model newxd = [300.,350.] obj.transform(newxd) to transform newxs = [-2.,-1.,1.,2.] obj.invtransform(newxs) to inverse transform
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
rescalex-1.0.1.tar.gz
(2.5 kB
view hashes)