zero_order_hold_matching
ZeroOrderHold(features, name='aligned', *, drop=True)
Bases: Transform
Aligns multiple time series features using zero-order-hold.
Initialize the ZeroOrderHoldMatching transform.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
features
|
list[str]
|
List of topics to align. |
required |
name
|
str
|
Name of the output time series feature. |
'aligned'
|
drop
|
bool
|
Whether to drop the original features after alignment. |
True
|
Source code in src/flowcean/polars/transforms/zero_order_hold_matching.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
|
zero_order_hold_align(data, columns, name)
Perform zero-order-hold alignment of multiple time series features.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
LazyFrame
|
Input DataFrame containing struct-type time series columns. |
required |
columns
|
Iterable[str]
|
Names of struct columns to align using zero-order-hold. |
required |
name
|
str
|
Name of the output struct column. |
required |
Returns:
Type | Description |
---|---|
LazyFrame
|
zero-order-hold aligned time series |
Source code in src/flowcean/polars/transforms/zero_order_hold_matching.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|