Public Member Functions | |
__init__ (self, *args) | |
fit (self, x, y=None) | |
__call__ (self, x) | |
transform (self, x, set_limits=False) | |
set_n_bins (self, n) | |
set_limits (self, x) | |
io (self) | |
Public Attributes | |
spline = None | |
Spline, fitting the CDF. | |
n_bins = n_bins | |
Binning in x, will be set automatically. | |
int | max = 0 |
Maximum of the fitted distribution. | |
int | min = 0 |
Minimum of the fitted distribution. | |
bool | is_processed = False |
Status flag. | |
name = name | |
Name of the class. | |
Protected Member Functions | |
_fit (self, x, y=None) | |
_transform (self, x) | |
_initialise (self, x) | |
Calculates the cumulative distribution (CDF) Can be used for the flat transformation. Attributes ---------- spline : InterpolatedUnivariateSpline Spline, fitting the CDF
Definition at line 176 of file transform.py.
__init__ | ( | self, | |
* | args ) |
Init function :param args: None
Definition at line 189 of file transform.py.
|
inherited |
Call function calls transform :param x: Input data :return: Transformed data
Definition at line 95 of file transform.py.
|
protected |
Fit function calculates the cumulative distribution with numpy percentile. :param x: Input distribution :param y: Will not be used in this transformation
Reimplemented from Transform.
Definition at line 199 of file transform.py.
|
protectedinherited |
Sets limits for the data. Not called by the user. :param x: array type
Definition at line 71 of file transform.py.
|
protected |
Transforms the input data according to the cdf. :param x: Input data :return: Transformed data
Reimplemented from Transform.
Definition at line 225 of file transform.py.
|
inherited |
The fit function is calls the individual _fit() functions. :param x: Distribution to fit, array type :param y: optional for some transformations, sets signal class
Definition at line 84 of file transform.py.
|
inherited |
Logging function :return: logger
Definition at line 49 of file settings.py.
|
inherited |
Limits the data to the fitted range. :param x: Input data :return: Limited data
Definition at line 139 of file transform.py.
|
inherited |
Calculates the optimal size for the binning. :param n: Length of the input data
Definition at line 131 of file transform.py.
|
inherited |
This is defined in the children and overwritten. :param x: Distribution to transform, array type :param set_limits: Limits the range of the data to the fitted range :return: Transformed data
Definition at line 110 of file transform.py.
|
inherited |
Status flag.
Definition at line 64 of file transform.py.
|
inherited |
Maximum of the fitted distribution.
Definition at line 58 of file transform.py.
|
inherited |
Minimum of the fitted distribution.
Definition at line 61 of file transform.py.
|
inherited |
Binning in x, will be set automatically.
Definition at line 55 of file transform.py.
|
inherited |
Name of the class.
Definition at line 46 of file settings.py.
spline = None |
Spline, fitting the CDF.
Definition at line 197 of file transform.py.