![]() |
Belle II Software prerelease-10-00-00a
|
Public Member Functions | |
__init__ (self, *args) | |
get_flat_bins (self) | |
get_x (self, x_flat) | |
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 | |
cdf = CDF(*args) | |
Transformation with 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) | |
This transformation uses the CDF to transform input data to a flat transformation. Attributes ---------- cdf : Transform.CDF Transformation with the CDF
Definition at line 235 of file transform.py.
__init__ | ( | self, | |
* | args ) |
Init function :param args: None
Definition at line 248 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 258 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 268 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.
get_flat_bins | ( | self | ) |
Returns the binning of the CDF :return: Binning for a flat distribution
Definition at line 278 of file transform.py.
get_x | ( | self, | |
x_flat ) |
Dirty version for getting the original x value out of a flat x value. :param x_flat: x value in the flat distribution :return: x value on the original axis (approx)
Definition at line 285 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.
cdf = CDF(*args) |
Transformation with the CDF.
Definition at line 256 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.