CADETProcess.transform.NormLinearTransformer

CADETProcess.transform.NormLinearTransformer#

class CADETProcess.transform.NormLinearTransformer(lb_input: float | ndarray = -inf, ub_input: float | ndarray = inf, allow_extended_input: bool | None = False, allow_extended_output: bool | None = False)[source]#

A transformer that normalizes values linearly to the range [0, 1].

This transformation scales the input value between the given lower and upper bounds into a normalized range of [0,1].

Attributes:
is_linear

Return True, as this is a linear transformation.

lb

Return the lower bound of the output space (0).

lb_input

Return the lower bounds of the input parameter space.

ub

Return the upper bound of the output space (1).

ub_input

Return the upper bounds of the input parameter space.

Methods

plot([use_log_scale, ax, setup_figure_kwargs])

Plot the transformed space against the input space.

transform(x)

Transform the input parameter space to the output parameter space.

untransform(x[, significant_digits])

Transform the output parameter space back to the input parameter space.

See also

TransformerBase

The base class for parameter transformation.