edges.modeling.xtransforms¶
Module defining x-variable transforms for modelling.
- class edges.modeling.xtransforms.CentreTransform(*, range, centre=0.0)[source]¶
A transform that shifts the coordinates to a new centre point.
The new coordinates will be centered at the mid-point of
rangepluscentre.- Parameters:
range (tuple[float, float]) – The range of the input coordinates.
centre (float) – The new centre point for the coordinates.
- class edges.modeling.xtransforms.Log10Transform(*, scale: float = 1.0)[source]¶
A transform that takes the base10 logarithm of the input.
The final coordinates will be
log10(original / scale).
- class edges.modeling.xtransforms.LogTransform(*, scale: float = 1.0)[source]¶
A transform that takes the logarithm of the input.
The final coordinates will be
log(original / scale).
- class edges.modeling.xtransforms.ScaleTransform(*, scale)[source]¶
A transform that scales the coordinates by a single factor.
- Parameters:
scale (float) – The scale factor to apply to the coordinates. The resulting coordinates will be
original/scale.
- class edges.modeling.xtransforms.ShiftTransform(*, shift=0.0)[source]¶
A transform that shifts the coordinates by a fixed amount.
- Parameters:
shift (float) – The amount to shift the coordinates by.
- class edges.modeling.xtransforms.UnitTransform(*, range)[source]¶
A transform that takes the input range down to -1 to 1.
- Parameters:
range (tuple[float, float]) – The range that is rescaled to (-1, 1). This need not be the range of the actual data, so that the final coordinates may extend past (-1, 1).
- class edges.modeling.xtransforms.XTransform[source]¶
Abstract base class for all coordinate transforms.
- class edges.modeling.xtransforms.ZerotooneTransform(*, range)[source]¶
A transform that takes an input range down to (0,1).
Like
UnitTransform, but rescales to (0, 1).