SeriesExtensionsResampleEquivalence Method |
Name | Description | |
---|---|---|
ResampleEquivalenceK, V, a(SeriesK, V, FuncK, a) |
Resample the series based on equivalence class on the keys. A specified function
`keyProj` is used to project keys to another space and the observations for which the
projected keys are equivalent are grouped into chunks. The chunks are then returned
as nested series.
## Parameters
- `series` - An input series to be resampled
- `keyProj` - A function that transforms keys from original space to a new
space (which is then used for grouping based on equivalence)
## Remarks
This operation is only supported on ordered series. The method throws
`InvalidOperationException` when the series is not ordered. For unordered
series, similar functionality can be implemented using `GroupBy`.
[category:Lookup, resampling and scaling]
| |
ResampleEquivalenceK, V, a, b(SeriesK, V, FuncK, a, FuncSeriesK, V, b) |
Resample the series based on equivalence class on the keys. A specified function
`keyProj` is used to project keys to another space and the observations for which the
projected keys are equivalent are grouped into chunks. The chunks are then transformed
to values using the provided function `f`.
## Parameters
- `series` - An input series to be resampled
- `keyProj` - A function that transforms keys from original space to a new
space (which is then used for grouping based on equivalence)
- `aggregate` - A function that is used to collapse a generated chunk into a
single value.
## Remarks
This operation is only supported on ordered series. The method throws
`InvalidOperationException` when the series is not ordered. For unordered
series, similar functionality can be implemented using `GroupBy`.
[category:Lookup, resampling and scaling]
|