2023-01-29 with a 28 day lookback period and 7 day seasonality will contain the all the data points at the timestamps 2023-01-01, 2023-01-08, 2023-01-15, and 2023-01-22.
The dimension values can be encoded in two ways: enumeration or linear buckets.
- The enumeration encoder should be used for string values or low-cardinality numeric values. New values encountered in the current data are always mapped the same integer, which corresponds to the other category.
- The linear buckets encoder should be used for numerical values that have high cardinality. The linear buckets encoder maps each dimension value to a bucket index. All values less than the smallest bucket are mapped to the smallest bucket. All values larger than the largest bucket are mapped to the largest bucket.
- For enumeration, the distance used is always 1 / number of unique values.
- For bucketing, the distance used is the normalized distance between the buckets.

