Existing Warp Functions¶
There are several pre-defined warp functions implementing some common maps.
- class vanguard.warps.warpfunctions.AffineWarpFunction(a=1, b=0)[source]¶
A warp of form \(y \mapsto ay + b\).
- class vanguard.warps.warpfunctions.PositiveAffineWarpFunction(a=1, b=0)[source]¶
A warp of form \(y \mapsto ay + b\), where \(ay + b > 0\).
Note
This warp function needs to be activated before use. See
vanguard.warps.intermediate.
- class vanguard.warps.warpfunctions.BoxCoxWarpFunction(lambda_=0)[source]¶
The Box-Cox warp as in [Rios19].
The transformation is given by:
\[y\mapsto\frac{sgn(y)|y|^\lambda - 1}{\lambda}, \lambda\in\mathbb{R}_0^+.\]
- class vanguard.warps.warpfunctions.SinhWarpFunction[source]¶
A map of the form \(y\mapsto\sinh(y)\).
- class vanguard.warps.warpfunctions.ArcSinhWarpFunction[source]¶
A map of the form \(y\mapsto\sinh^{-1}(y)\).