Skip to main content

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


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)

Uploaded Source

Built Distribution

rescalex-1.0.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page