Cyclic#
- class gpjax.xarray.Cyclic(name, period)[source]#
Bases:
InputTransformEncode a periodic input as a point on a circle.
The column is replaced by
{name}_sinand{name}_cosof2 pi value / period, so values one period apart get the same encoding. Datetime inputs are days since their time origin:Cyclic("time", 365.25)encodes the seasonal cycle, andCyclic("lon", 360.0)removes the seam in longitude.